Playerlib.getPlayerList
From EventScripts Community Encyclopedia
|
[edit] Method: getPlayerListModule: playerlib [edit] Method Overview[edit] Table of Contents
[edit] DescriptionReturns a list of playerlib.Player instances of users who fit the filters specified by filtername. If filtername is omitted a list of playerlib.Player instances for every connected user will be returned. [edit] Arguments
[edit] Examplesimport es import playerlib # Creates a list of Player objects using a filter myPlayerList = playerlib.getPlayerList('#ct,#alive') # Go through the players, get some attributes and print them to the chat area for ply in myPlayerList: es.msg(ply.weapon) # Now you can get their Userid from the filtered getPlayerList es.tell(ply.userid, 'You are a living CT!') [edit] Notes
[edit] See Also |
|
