Skip to content
This repository has been archived by the owner on Apr 17, 2021. It is now read-only.

API Class: Tools.GetPlayerByName()

D1G1T4L3CH0 edited this page Feb 26, 2015 · 6 revisions

Summary

Returns a Player object of the player matching the specified name.

Arguments

Player GetPlayerByName(string name)

Example(s)

Lua
Finds the player by the text specified in args.Text and then displays the player's name in console. Note: The name must match exactly, but case does not matter.

plr = Tools.GetPlayerByName(args.Text)
Tools.WriteLine(plr.name)