16.11.2011, 10:09
pawn Код:
forward ChecarCheater(playerid);
public ChecarCheater(playerid)
{
if(GetPlayerSpecialAction(playerid) == 2 && !IsPlayerAdmin(playerid)) {
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(stringx,128,"{FF0000}[ANTI-CHEAT]: %s Foi kickado pelo administrador BOT [motivo: Arma Proibida: Jet-Pack ]",pName);
SendClientMessageToAll(0xFF0000AA,stringx);
Kick(playerid);
return 1;
}
new Float:Vida;
GetPlayerHealth(playerid, Vida);
if(Vida > LIFE && !IsPlayerAdmin(playerid)) {
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(stringx,128,"{FF0000}[ANTI-CHEAT]: %s Foi kickado pelo administrador BOT [motivo: Health Hack ]",pName);
SendClientMessageToAll(0xFF0000AA,stringx);
Kick(playerid);
return 1;
}
new Float:Colete;
GetPlayerArmour(playerid, Colete);
if(Colete > ARMOUR && !IsPlayerAdmin(playerid)) {
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(stringx,128,"{FF0000}[ANTI-CHEAT]: %s Foi kickado pelo administrador BOT [motivo: Armor Hack ]",pName);
SendClientMessageToAll(0xFF0000AA,stringx);
Kick(playerid);
return 1;
}
if(GetPlayerWeapon(playerid) == 18 && !IsPlayerAdmin(playerid)) {
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(stringx,128,"{FF0000}[ANTI-CHEAT]: %s Foi kickado pelo administrador BOT [motivo: Arma Proibida: Molotov Cocktail ]",pName);
SendClientMessageToAll(0xFF0000AA,stringx);
Kick(playerid);
return 1;
}
if(GetPlayerWeapon(playerid) == 17 && !IsPlayerAdmin(playerid)) {
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(stringx,128,"{FF0000}[ANTI-CHEAT]: %s Foi kickado pelo administrador BOT [motivo: Arma Proibida: Bomba de Gбs ]",pName);
SendClientMessageToAll(0xFF0000AA,stringx);
Kick(playerid);
return 1;
}
if(GetPlayerWeapon(playerid) == 35 && !IsPlayerAdmin(playerid)) {
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(stringx,128,"{FF0000}[ANTI-CHEAT]: %s Foi kickado pelo administrador BOT [motivo: Arma Proibida: Rocket Launcher ]",pName);
SendClientMessageToAll(0xFF0000AA,stringx);
Kick(playerid);
return 1;
}
if(GetPlayerWeapon(playerid) == 36 && !IsPlayerAdmin(playerid)) {
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(stringx,128,"{FF0000}[ANTI-CHEAT]: %s Foi kickado pelo administrador BOT [motivo: Arma Proibida: Bazuca ]",pName);
SendClientMessageToAll(0xFF0000AA,stringx);
Kick(playerid);
return 1;
}
if(GetPlayerWeapon(playerid) == 37 && !IsPlayerAdmin(playerid)) {
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(stringx,128,"{FF0000}[ANTI-CHEAT]: %s Foi kickado pelo administrador BOT [motivo: Arma Proibida: Lanзa Chamas ]",pName);
SendClientMessageToAll(0xFF0000AA,stringx);
Kick(playerid);
return 1;
}
if(GetPlayerWeapon(playerid) == 38 && !IsPlayerAdmin(playerid)) {
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(stringx,128,"{FF0000}[ANTI-CHEAT]: %s Foi kickado pelo administrador BOT [motivo: Arma Proibida: Minigun ]",pName);
SendClientMessageToAll(0xFF0000AA,stringx);
Kick(playerid);
return 1;
}
if(GetPlayerWeapon(playerid) == 39 && !IsPlayerAdmin(playerid)) {
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(stringx,128,"{FF0000}[ANTI-CHEAT]: %s Foi kickado pelo administrador BOT [motivo: Arma Proibida: Satchel Charge ]",pName);
SendClientMessageToAll(0xFF0000AA,stringx);
Kick(playerid);
return 1;
}
if(GetPlayerWeapon(playerid) == 40 && !IsPlayerAdmin(playerid)) {
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(stringx,128,"{FF0000}[ANTI-CHEAT]: %s Foi kickado pelo administrador BOT [motivo: Arma Proibida: Detonador ]",pName);
SendClientMessageToAll(0xFF0000AA,stringx);
Kick(playerid);
return 1;
}
if(GetPlayerWeapon(playerid) == 44 && !IsPlayerAdmin(playerid)) {
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(stringx,128,"{FF0000}[ANTI-CHEAT]: %s Foi kickado pelo administrador BOT [motivo: Arma Proibida: Visгo Noturna ]",pName);
SendClientMessageToAll(0xFF0000AA,stringx);
Kick(playerid);
return 1;
}
if(GetPlayerWeapon(playerid) == 45 && !IsPlayerAdmin(playerid)) {
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(stringx,128,"{FF0000}[ANTI-CHEAT]: %s Foi kickado pelo administrador BOT [motivo: Arma Proibida: Visгo Noturna ]",pName);
SendClientMessageToAll(0xFF0000AA,stringx);
Kick(playerid);
return 1;
}
return 1;
}