18.09.2010, 10:06
try somethin like this..
Quote:
#if defined ANTI_MINIGUN new weap, ammo; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && PlayerInfo[i][Level] == 0) { if(IsPlayerInMiniGame[playerid] == 1) return// GetPlayerWeaponData(i, 7, weap, ammo); if(ammo > 1 && weap == 3 { if new string[128]; format(string,sizeof(string),"ANTICHEAT: %s has been automatically banned for spawning Minigun with %d ammo", PlayerName2(i), ammo); SendClientMessageToAll(red,string); Ban(i); } } } #endif |