Est GetSG

From EventScripts Community Encyclopedia
Syntax: est_GetSG <variable> <identifier>
Note: Command parameters are described inside the < and > characters. Optional parameters are contained within [ and ] characters.

Contents

Description

  • Returns 1 if player has a Smoke Gernade

Parameters

  • variable - The variable to store the returned value in
  • identifier - The identifier must be a players:
    • userid
    • steamid
    • username - Partial or full name

Example


event player_spawn
{
  es_xset myvar 0
  es est_GetSG myvar event_var(userid)
  if(server_var(myvar) == 0) then es_xgive event_var(userid) weapon_smokegrenade
}

Notes

  • None

See Also

blog comments powered by Disqus