Es.getplayerteam
From EventScripts Community Encyclopedia
[edit] Method: getplayerteamModule: es [edit] Method Overview[edit] Table of Contents
[edit] DescriptionReturns the target players team as an integer [edit] Arguments
[edit] Examplesimport es def player_spawn(event_var): team = es.getplayerteam(event_var['userid']) name = es.getplayername(ev['userid'] if team == 2: es.msg('%s just spawned as a Terrorist!'%name) elif team == 3: es.msg('%s just spawned as a Counter-Terrorist!'%name) [edit] NotesTeam ids:
[edit] See Also |
|
