Template:Server client function: Difference between revisions
Jump to navigation
Jump to search
(→Syntax) |
(→Code) |
||
Line 1: | Line 1: | ||
==Example== | ==Example== | ||
This example get player from account name by command | This example get player from account name by command |
Revision as of 16:50, 16 April 2017
Example
This example get player from account name by command
addCommandHandler ("getPlayerName", function (player,_,name) if name then local thePlayer = getPlayerFromAccountName (name) if thePlayer then outputChatBox (getPlayerName (thePlayer),player,255,255,255,true) else outputChatBox ("player not found !",player,255,0,0) end else outputChatBox ("type account name frist !",player,255,255,0) end end )
Author: ,#Na[W]aF'1000.