20.10.2017, 12:56
Anti-BulletCrasher (Anti-Crasher) to s()beit blue eclipse and s()beit red eclispe
Код:
const PLAYER_SYNC = 207; IPacket:PLAYER_SYNC(playerid, BitStream:bs) { new onFootData[PR_OnFootSync]; BS_IgnoreBits(bs, 8); BS_ReadOnFootSync(bs, onFootData); if(onFootData[PR_position][2] == -5.5) { new string[144],name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(string,sizeof(string),"{FF0000}[Anti-BulletCrasher]: {FFFF00}%s {999999}(ID:%d) {00FF00}auto-kicked {FF0000}[Reason: BulletCrasher]", name,playerid); SendClientMessageToAll(-1, string); string[0] = EOS; Kick(playerid); return false; } return true; }