help 2 add some thing in anti cheat - 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: help 2 add some thing in anti cheat (
/showthread.php?tid=148951)
help 2 add some thing in anti cheat -
rong13 - 19.05.2010
i create anti cheat that work on timers
like
Quote:
OnGameModeInit
SetTimer("AntiMiniGun",1000,1);
|
down in the mode
Quote:
forward AntiMiniGun();
public AntiMiniGun(){
for(new i=0; i<MAX_PLAYERS; i++){
if(IsPlayerConnected(i)) {
if(GetPlayerWeapon(i) == 3
Ban(i);
}
}
}
|
there is no problom in that but i want that if admin have it he not get ban
how i do it ?
Re: help 2 add some thing in anti cheat -
DaneAMattie - 19.05.2010
Quote:
Originally Posted by rong13
|
Код:
OnGameModeInit
SetTimer("AntiMiniGun",1000,1);
Код:
forward AntiMiniGun();
public AntiMiniGun()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(!IsPlayerAdmin(i)
{
}
else
{
if(GetPlayerWeapon(i) == 38)
{
Ban(i);
}
}
}
}
this should do it
Re: help 2 add some thing in anti cheat -
rong13 - 19.05.2010
tanks