21.10.2017, 04:26
Anti-Jetpack (Anti-Cheat)
Tt is allowed to use jetpack, only rcon admin!
Tt is allowed to use jetpack, only rcon admin!
Код:
const PLAYER_SYNC = 207;
IPacket:PLAYER_SYNC(playerid, BitStream:bs)
{
new onFootData[PR_OnFootSync];
BS_IgnoreBits(bs, 8);
BS_ReadOnFootSync(bs, onFootData);
if(!IsPlayerAdmin(playerid) && onFootData[PR_specialAction] == SPECIAL_ACTION_USEJETPACK) {
new string[144],name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string,sizeof(string),"{FF0000}[Anti-JetpackHack]: {FFFF00}%s {999999}(ID:%d) {00FF00}auto-kicked {FF0000}[Reason: JetpackHack]", name,playerid);
SendClientMessageToAll(-Unu, string);
string[0] = EOS;
Kick(playerid);
return false;
}
return true;
}
