Add stat constants in plugins (#522)

* Add stat constants in plugins

* Add missing include in dodstats.sma

* Fix misplaced HIT_RIGHTLEG constant
This commit is contained in:
OciXCrom
2018-08-30 18:41:49 +02:00
committed by Vincent Herbet
parent 56e8dcf3d5
commit 189f16fcc4
12 changed files with 191 additions and 199 deletions

View File

@@ -28,13 +28,14 @@
*/
#include <amxmodx>
#include <dodx>
#define KILLS stats[0]
#define DEATHS stats[1]
#define TK stats[3]
#define SCORE stats[7]
#define KILLS stats[DODX_KILLS]
#define DEATHS stats[DODX_DEATHS]
#define TK stats[DODX_TEAMKILLS]
#define SCORE stats[DODX_POINTS]
public get_score(stats[9],body[8]){
public get_score(stats[DODX_MAX_STATS],body[MAX_BODYHITS]){
if (!DEATHS)
DEATHS = 1