Es.getcmduserid
From EventScripts Community Encyclopedia
|
[edit] Method: getcmduseridModule: es [edit] Method Overview[edit] Table of Contents
[edit] DescriptionReturns the userid of the player who issued a say/client command [edit] Argumentses.getcmduserid()
[edit] Examplesimport es def load(): es.regsaycmd('!name', 'script/name') def name(): user = es.getcmduserid() name = es.getplayername(user) es.msg('Your name is', name) Prints the name of the player who said "!name" [edit] NotesThis command only works in a block called by es.regsaycmd or es.regclientcmd.
[edit] See Also |
|
