Don't work. They are banning without any weapon yet
pawn Код:
new string[256];
new giveplayer[MAX_PLAYER_NAME];
GetPlayerName(playerid, giveplayer, sizeof(giveplayer));
new arma = GetPlayerWeapon(playerid);
//new ammo = GetPlayerAmmo(playerid);
if(arma == 1 && pArmaId1[playerid] == 0)
{
new year, month,day;
getdate(year, month, day);
format(string, sizeof(string), "AdmCmd: %s was banned by %s, reason: Cheto de mierda (%d-%d-%d)", giveplayer,month,day,year);
BanLog(string);
format(string, sizeof(string), "AdmCmd: %s a sido baneado por el anticheat de CTCCoco, razуn: owned", giveplayer);
SendClientMessageToAll(COLOR_LIGHTRED, string);
PlayerInfo[playerid][pLevel] = -999;
Ban(playerid);
}
else if(arma == 2 && pArmaId2[playerid] == 0)
{
new year, month,day;
getdate(year, month, day);
format(string, sizeof(string), "AdmCmd: %s was banned by %s, reason: Cheto de mierda (%d-%d-%d)", giveplayer,month,day,year);
BanLog(string);
format(string, sizeof(string), "AdmCmd: %s a sido baneado por el anticheat de CTCCoco, razуn: owned", giveplayer);
SendClientMessageToAll(COLOR_LIGHTRED, string);
PlayerInfo[playerid][pLevel] = -999;
Ban(playerid);
}
else if(arma == 3 && pArmaId3[playerid] == 0)
{
new year, month,day;
getdate(year, month, day);
format(string, sizeof(string), "AdmCmd: %s was banned by %s, reason: Cheto de mierda (%d-%d-%d)", giveplayer,month,day,year);
BanLog(string);
format(string, sizeof(string), "AdmCmd: %s a sido baneado por el anticheat de CTCCoco, razуn: owned", giveplayer);
SendClientMessageToAll(COLOR_LIGHTRED, string);
PlayerInfo[playerid][pLevel] = -999;
Ban(playerid);
}
else if(arma == 4 && pArmaId4[playerid] == 0)
{
new year, month,day;
getdate(year, month, day);
format(string, sizeof(string), "AdmCmd: %s was banned by %s, reason: Cheto de mierda (%d-%d-%d)", giveplayer,month,day,year);
BanLog(string);
format(string, sizeof(string), "AdmCmd: %s a sido baneado por el anticheat de CTCCoco, razуn: owned", giveplayer);
SendClientMessageToAll(COLOR_LIGHTRED, string);
PlayerInfo[playerid][pLevel] = -999;
Ban(playerid);
}
else if(arma == 5 && pArmaId5[playerid] == 0)
{
new year, month,day;
getdate(year, month, day);
format(string, sizeof(string), "AdmCmd: %s was banned by %s, reason: Cheto de mierda (%d-%d-%d)", giveplayer,month,day,year);
BanLog(string);
format(string, sizeof(string), "AdmCmd: %s a sido baneado por el anticheat de CTCCoco, razуn: owned", giveplayer);
SendClientMessageToAll(COLOR_LIGHTRED, string);
PlayerInfo[playerid][pLevel] = -999;
Ban(playerid);
}
............etc