22.09.2010, 08:03
I made a anti-cheat so when player kills other player with minigun he will be banned.
I puted the code on OnPlayerDeath:
But how do I make that when player takes minigun from his cheat program
that he will be banned even he didn't killed anyone with that weapon.
Should I put that code ^ OnPlayerUpdate ?
I puted the code on OnPlayerDeath:
pawn Код:
if(GetPlayerWeapon(killerid) == 38) Ban(killerid);
{
new string[248],pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,sizeof(pName));
format(string,sizeof(string),"[ANTI-CHEAT]: %s [ID:%d] has been banned for weapons hax.",pName,playerid);
SendClientMessageToAll(red,string);
}
that he will be banned even he didn't killed anyone with that weapon.
Should I put that code ^ OnPlayerUpdate ?