Est GetGun

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

Contents

Description

Stores the targeted players active weapon (eg: weapon_knife)

Parameters

  • variable - The variable to store the returned value in.
  • userid - The userid of the targeted player

Example


event player_spawn
{
  es_xset temp 0
  es est_GetGun temp event_var(userid)
  es_tell event_var(userid) Your wielding: server_var(temp)
  // Tell the player the weapon they are holding when they spawn
}

Notes

  • None
blog comments powered by Disqus