Anti-Cheat Problem
#8

Your origonal one wouldn't work because you return 1; before it can check all players.

well if that's a timer, you could just do:

pawn Код:
forward WeapCheck();
pawn Код:
public OnGameModeInit()
{
  SetTimer("WeapCheck",15000,1);
  return 1;
}
pawn Код:
public WeapCheck()
{
  for(new i; i<200;i++)
  {
    if((GetPlayerWeapon(i)==38)||(GetPlayerWeapon(i)==35)||(GetPlayerWeapon(i)==36))
    format(string, sizeof(string), "%s has been kicked for cheating", playername);
    SendClientMessageToAll(ADMIN_RED, string);
    Kick(i);
  }
  return 1;
}
Reply


Messages In This Thread
Anti-Cheat Problem - by Danny_Costelo - 05.05.2009, 02:56
Re: Anti-Cheat Problem - by Backwardsman97 - 05.05.2009, 03:21
Re: Anti-Cheat Problem - by Danny_Costelo - 05.05.2009, 03:37
Re: Anti-Cheat Problem - by Think - 05.05.2009, 10:04
Re: Anti-Cheat Problem - by Danny_Costelo - 05.05.2009, 19:21
Re: Anti-Cheat Problem - by Joe Staff - 05.05.2009, 20:05
Re: Anti-Cheat Problem - by Byrner - 05.05.2009, 22:15
Re: Anti-Cheat Problem - by Badger(new) - 27.06.2009, 15:54
Re: Anti-Cheat Problem - by Grim_ - 27.06.2009, 15:57
Re: Anti-Cheat Problem - by illay - 27.06.2009, 16:00

Forum Jump:


Users browsing this thread: 1 Guest(s)