Es getuserid
From EventScripts Community Encyclopedia
|
[edit] OverviewSyntax: Note: Command parameters are described inside the
< and > characters. Optional parameters are contained within [ and ] characters.Variation of this command that doesn't expand variables: es_xgetuserid [edit] DescriptionSearches all online users to see if their STEAMID, userid, handle, or name matches the match-text. It stores the userid in variable-- a 0 return indicates no match was found.
[edit] Parameters
[edit] Examples// find a player so you can give them a single player_weaponstrip everyone can use es_setinfo myplayer 0 es_getuserid myplayer es_give server_var(myplayer) player_weaponstrip // find any player using 'mattie' in their name es_setinfo mattieplayer 0 es_getuserid myplayer "mattie" if (server_var(myplayer) > 0) then kickid event_var(myplayer) "Reserved name: mattie"
[edit] Notes
[edit] See also
|
