Est KnifeOnly

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

Contents

Description

  • Returns whether the player only has a knife or not

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_KnifeOnly myvar event_var(userid)
  if(event_var(es_userteam) > 1) then if(server_var(myvar) == 1) then es_xtell event_var(userid) Go OWN all them noobs with your knife
}

Notes

  • C4 allowed
  • Grenades not allowed

See Also

blog comments powered by Disqus