21.09.2011, 12:42
Well... PWNED Look here:
And you have:
Change with:
Or if the timer is at OnGameModeInit, Look Here..:
pawn Код:
public Cheat( playerid )
{
new Float:health;
ForEachPlayer( playerid )
{
GetPlayerHealth( playerid, health );
if( health > 99 )
{
if( PlayerInfo[ playerid ][ spawnp ] == 0 )
{
if( PlayerInfo[ playerid ][ AdminLevel ] < 1 )
{
BanPlayerEx( playerid, "Anticheat", "Health Cheats [MAX HP]" );
}
}
}
}
return ( 1 );
}
pawn Код:
SetTimer( "Cheat", 1000, true );
pawn Код:
SetTimerEx( "Cheat", 1000, true, "i", playerid );
pawn Код:
for( new i = 0; i < MAX_PLAYERS; i ++ ) SetTimerEx( "Cheat", 1000, true, "i", i );