Es.getUseridList
From EventScripts Community Encyclopedia
[edit] Method: getUseridListModule: es [edit] Method Overview[edit] Table of Contents
[edit] DescriptionThis command allows you to retrieve a list of all the players userid on the server. Note that userids in the list are integers, not strings. [edit] Arguments
[edit] Examplesdef player_say(event_var): if event_var["text"] == "Hello": PlayerList = es.getUseridList() for Player in PlayerList: UserName = event_var["es_username"] PlayerName = es.getplayername(Player) es.tell(Player,"Hello " + PlayerName + ", Player " + UserName + " said hello to you.") [edit] NotesThis cannot be used to get filtered UserID's.
[edit] See Alsol playerlib - It can produce filtered User Lists, but takes longer to make. |
|
