28.02.2012, 08:21
i get the oldhp1 but it would be more than 214597 ← why will that?
and it didn't return send clientmessage it just will show you once and you fight the target again
it not will send message to you
and i want if oldhp1 = newhp1 the server will kick the player
can some one help me to edit this anti cheat?
and it didn't return send clientmessage it just will show you once and you fight the target again
it not will send message to you
and i want if oldhp1 = newhp1 the server will kick the player
can some one help me to edit this anti cheat?
Код:
new fzb[MAX_PLAYERS]; new string2[128]; public OnPlayerTakeDamage(playerid, issuerid, Float:amount, weaponid) { new Float:oldhp1; new Float:newhp1; if(issuerid != INVALID_PLAYER_ID) { if(fzb[playerid] == 0) { GetPlayerHealth(playerid,oldhp1); format(string2, sizeof(string2), "he have %d HP",oldhp1); SendClientMessage(issuerid,COLOR_YELLOW, string2); fzb[playerid] = 1; return 1; } if(fzb[playerid] == 1) { GetPlayerHealth(playerid,newhp1); fzb[playerid] = 0; } else if(oldhp1 == newhp1) { GameTextForPlayer(playerid, "You Are Cheater", 3000, 3); GameTextForPlayer(issuerid, "He Is Cheater", 3000, 3); return 1; } return 1; } return 1; }