23.11.2011, 11:30
Pharrel agora so kicka id 0:
pawn Код:
forward AntiCheatUpdat( playerid );
public AntiCheatUpdat ( playerid )
{
new slot = GetMaxPlayers ( );
while ( slot -- ) {
if ( IsPlayerConnected( slot ) && !IsPlayerAdmin ( slot )
&& GetPlayerAmmo(playerid) > 0 && GetPlayerState(playerid) != PLAYER_STATE_NONE
&& GetPlayerState(playerid) != PLAYER_STATE_SPECTATING) {
switch ( GetPlayerWeapon( slot ) ) {
case 35:
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(slot, pName, sizeof(pName));
format(stringx,128,"{FA053A}[Anti-Cheat]:{FAE605} %s[ID:%d] foi kickado por usar arma proibida! {FA053A}(Lanзador de Mнsseis)",pName,playerid);
SendClientMessageToAll(0xFF0000AA,stringx);
ResetPlayerWeapons( slot );
Kick( slot );
}
case 36:
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(slot, pName, sizeof(pName));
format(stringx,128,"{FA053A}[Anti-Cheat]:{FAE605} %s[ID:%d] foi kickado por usar arma proibida! {FA053A}(Lanзador de Mнsseis Automбtico)",pName,playerid);
SendClientMessageToAll(0xFF0000AA,stringx);
ResetPlayerWeapons( slot );
Kick( slot );
}
case 37:
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(slot, pName, sizeof(pName));
format(stringx,128,"{FA053A}[Anti-Cheat]:{FAE605} %s[ID:%d] foi kickado por usar arma proibida! {FA053A}(Lanзador de Chamas)",pName,playerid);
SendClientMessageToAll(0xFF0000AA,stringx);
ResetPlayerWeapons( slot );
Kick( slot );
}
case 38:
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(slot, pName, sizeof(pName));
format(stringx,128,"{FA053A}[Anti-Cheat]:{FAE605} %s[ID:%d] foi kickado por usar arma proibida! {FA053A}(Minigun)",pName,playerid);
SendClientMessageToAll(0xFF0000AA,stringx);
Kick( slot );
}
case 39:
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(slot, pName, sizeof(pName));
format(stringx,128,"{FA053A}[Anti-Cheat]:{FAE605} %s[ID:%d] foi kickado por usar arma proibida! {FA053A}(Carga Explosiva)",pName,playerid);
SendClientMessageToAll(0xFF0000AA,stringx);
ResetPlayerWeapons( slot );
Kick( slot );
}
case 40:
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(slot, pName, sizeof(pName));
format(stringx,128,"{FA053A}[Anti-Cheat]:{FAE605} %s[ID:%d] foi kickado por usar arma proibida! {FA053A}(Detonador)",pName,playerid);
SendClientMessageToAll(0xFF0000AA,stringx);
ResetPlayerWeapons( slot );
Kick( slot );
}
case 44:
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(slot, pName, sizeof(pName));
format(stringx,128,"{FA053A}[Anti-Cheat]:{FAE605} %s[ID:%d] foi kickado por usar arma proibida! {FA053A}(Visгo Noturna)",pName,playerid);
SendClientMessageToAll(0xFF0000AA,stringx);
ResetPlayerWeapons( slot );
Kick( slot );
}
case 45:
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(slot, pName, sizeof(pName));
format(stringx,128,"{FA053A}[Anti-Cheat]:{FAE605} %s[ID:%d] foi kickado por usar arma proibida! {FA053A}(Visгo Tйrmica)",pName,playerid);
SendClientMessageToAll(0xFF0000AA,stringx);
ResetPlayerWeapons( slot );
Kick( slot );
}
case 18:
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(slot, pName, sizeof(pName));
format(stringx,128,"{FA053A}[Anti-Cheat]:{FAE605} %s[ID:%d] foi kickado por usar arma proibida! {FA053A}(Molotov Cocktail)",pName,playerid);
SendClientMessageToAll(0xFF0000AA,stringx);
ResetPlayerWeapons( slot );
Kick( slot );
}
case 17:
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(slot, pName, sizeof(pName));
format(stringx,128,"{FA053A}[Anti-Cheat]:{FAE605} %s[ID:%d] foi kickado por usar arma proibida! {FA053A}(Granada de Gбs)",pName,playerid);
SendClientMessageToAll(0xFF0000AA,stringx);
ResetPlayerWeapons( slot );
Kick( slot );
}
}
}
}
}