what should i do with this .. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: what should i do with this .. (
/showthread.php?tid=178435)
what should i do with this .. -
Matej_ - 22.09.2010
I made a anti-cheat so when player kills other player with minigun he will be banned.
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);
}
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 ?
Re: what should i do with this .. -
Retardedwolf - 22.09.2010
Run a timer or use OnPlayerKeyStateChange
Re: what should i do with this .. -
Voldemort - 22.09.2010
Make a global 1 sec timer to check each player, GetPlayerWeapon if its minigun Ban him
Re: what should i do with this .. -
willsuckformoney - 22.09.2010
if(GetPlayerWeapon(playerid) == 3
return Ban(playerid); OnPlayerUpdate.
Re: what should i do with this .. -
Matej_ - 22.09.2010
Quote:
Originally Posted by willsuckformoney
if(GetPlayerWeapon(playerid) == 3 return Ban(playerid); OnPlayerUpdate.
|
ok thanks