03.03.2012, 13:00
pawn Код:
forward Check(playerid);
public Check(playerid)
{
new string[256];
new PlayerName[MAX_PLAYER_NAME];
for(new d = 0; d < MAX_PLAYER; d++)
{
if(GetPlayerSpecialAction(d) == SPECIAL_ACTION_USEJETPACK)
{
GetPlayerName(d, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "-DHack- %s Foi Kickado Pelo Administrador DBot [Motivo: JetPack Hack]", PlayerName);
SendClientMessageToAll(COLOR_LIGHTRED, string);
Kick(playerid);
}
for(new a = 0; a < sizeof(Armashack); a ++)
{
if(GetPlayerWeapon(d) == Armashack[a]){
GetPlayerName(d, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "-DHack- %s Foi Kickado Pelo Administrador DBot [Motivo: Weapon Hack]", PlayerName);
SendClientMessageToAll(COLOR_LIGHTRED, string);
Kick(playerid);
}
}
}
}