Est GetDeaths

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

Contents

Description

Stores the targeted players death count.

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_xset temp2 0
  es est_GetKills temp event_var(userid)
  es est_GetDeaths temp2 event_var(userid)
  es_math temp / server_var(temp2)
  es_tell event_var(userid) Your KDR is: server_var(temp)
  // Tell the player their Kill to Death ratio when they spawn
}

Notes

  • None
blog comments powered by Disqus