08.05.2017, 08:15
Hi
i am trying to make a anti cheat include
added anti money hack but having problem with health
Code:
i am trying to make a anti cheat include
added anti money hack but having problem with health
Code:
Код:
new float:health[MAX_PLAYERS];
new float:oldHealth[MAX_PLAYERS];
stock ASetPlayerHealth(playerid,heal) {
GetPlayerHealth(playerid,oldHealth); //Giving error in this line
SetPlayerHealth(playerid,heal);
health[playerid] = heal; //warning 213: tag mismatch
new m[126];
format(m,sizeof(m),"%i",health[playerid]);
SendClientMessage(playerid,COLOR_RED,m);
return 1;
}

