pawn Код:
{
new string[128];
new giveplayer[MAX_PLAYER_NAME];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && gPlayerLogged[i] == 1 && !IsPlayerNPC(i) && spawnado[i] > 0)
{
//Minigun
if(GetPlayerWeapon(i) == 38)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando uma Minigun /tv nele rapido", giveplayer,i);
ABroadCast(COLOR_LIGHTRED,string,1);
//ResetPlayerWeaponsEx(i);
SetPlayerArmedWeapon(i, 0);
}
//Rocket Launcher
else if(GetPlayerWeapon(i) == 35)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando um Rocket Launcher /tv nele rapido", giveplayer,i);
ABroadCast(COLOR_LIGHTRED,string,1);
//ResetPlayerWeaponsEx(i);
SetPlayerArmedWeapon(i, 0);
}
// Lanзa chamas
if(GetPlayerWeapon(i) == 37)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando um Lanзa Chamas /tv nele rapido", giveplayer,i);
ABroadCast(COLOR_LIGHTRED,string,1);
ResetPlayerWeaponsEx(i);
SetPlayerArmedWeapon(i, 0);
}
// Visгo Noturna
else if(GetPlayerWeapon(i) == 44)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "%s ANTICHEAT: %s[ID %d] estб usando uma Visгo Noturna /tv nele rapido", giveplayer,i);
ABroadCast(COLOR_LIGHTRED,string,1);
//ResetPlayerWeaponsEx(i);
SetPlayerArmedWeapon(i, 0);
}
// Visгo de Calor
else if(GetPlayerWeapon(i) == 45)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando uma Visгo de Calor /tv nele rapido", giveplayer,i);
ABroadCast(COLOR_LIGHTRED,string,1);
//ResetPlayerWeaponsEx(i);
SetPlayerArmedWeapon(i, 0);
}
//Serra Eletrica
else if(GetPlayerWeapon(i) == 9)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando uma Serra Eletrica /tv nele rapido", giveplayer,i);
ABroadCast(COLOR_LIGHTRED,string,1);
ResetPlayerWeaponsEx(i);
SetPlayerArmedWeapon(i, 0);
}
//Sawn-off
else if(GetPlayerWeapon(i) == 26)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando uma Sawn-off /tv nele rapido", giveplayer,i);
ABroadCast(COLOR_LIGHTRED,string,1);
ResetPlayerWeaponsEx(i);
SetPlayerArmedWeapon(i, 0);
}
//Molotov
else if(GetPlayerWeapon(i) == 18)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando um Molotov /tv nele rapido", giveplayer,i);
ABroadCast(COLOR_LIGHTRED,string,1);
ResetPlayerWeaponsEx(i);
SetPlayerArmedWeapon(i, 0);
}
//Micro Uzi
else if(GetPlayerWeapon(i) == 28)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando uma Micro Uzi /tv nele rapido", giveplayer,i);
ABroadCast(COLOR_LIGHTRED,string,1);
ResetPlayerWeaponsEx(i);
SetPlayerArmedWeapon(i, 0);
}
//Tec 9
else if(GetPlayerWeapon(i) == 32)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando uma TEC-9 /tv nele rapido", giveplayer,i);
ABroadCast(COLOR_LIGHTRED,string,1);
//ResetPlayerWeaponsEx(i);
SetPlayerArmedWeapon(i, 0);
}
//Bazooca
else if(GetPlayerWeapon(i) == 36)
{
GetPlayerName(i, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "ANTICHEAT: %s[ID %d] estб usando uma Bazooca /tv nele rapido", giveplayer,i);
ABroadCast(COLOR_LIGHTRED,string,1);
ResetPlayerWeaponsEx(i);
SetPlayerArmedWeapon(i, 0);
}
}
}
return true;
}