if(GetTeam{playerid} == CLASS_CIV && IsPlayerHoldingAGun(playerid) == 1) { shotsfired[playerid] ++; if(shotsfired[playerid] >= 25) { new current_zone, string[150]; current_zone = Player_Zone[playerid]; SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 3); format(string, sizeof(string), "%s [%d] has assaulted %s [%d] with a deadly weapon at %s", GetName(playerid), playerid, GetName(damagedid), damagedid, ZoneNames[current_zone][zone_name]); CopRadio(BLUE, string); SendClientMessage(playerid, RED, "Assault With A Deadly Weapon - Wanted Level 3"); shotsfired[playerid] = 0; } else { new current_zone, string[150]; current_zone = Player_Zone[playerid]; SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 6); format(string, sizeof(string), "%s [%d] has assaulted %s [%d] with a deadly weapon at %s", GetName(playerid), playerid, GetName(damagedid), damagedid, ZoneNames[current_zone][zone_name]); CopRadio(BLUE, string); SendClientMessage(playerid, RED, "Assault With A Deadly Weapon - Wanted Level 6"); shotsfired[playerid] = 0; } } return 1; }
if(GetTeam{playerid} == CLASS_CIV && IsPlayerHoldingAGun(playerid) == 1)
{
shotsfired[playerid] =+ 1;
if(shotsfired[playerid] == 1 && shotsfired[playerid] != 0)
{
new current_zone, string[150];
current_zone = Player_Zone[playerid];
SetPlayerWantedLevel(playerid, 3);
format(string, sizeof(string), "%s [%d] has assaulted %s [%d] with a deadly weapon at %s", GetName(playerid), playerid, GetName(damagedid), damagedid, ZoneNames[current_zone][zone_name]);
CopRadio(BLUE, string);
SendClientMessage(playerid, RED, "Assault With A Deadly Weapon - Wanted Level 3");
shotsfired[playerid] = 0;
}
else
{
new current_zone, string[150];
current_zone = Player_Zone[playerid];
SetPlayerWantedLevel(playerid, 6);
format(string, sizeof(string), "%s [%d] has assaulted %s [%d] with a deadly weapon at %s", GetName(playerid), playerid, GetName(damagedid), damagedid, ZoneNames[current_zone][zone_name]);
CopRadio(BLUE, string);
SendClientMessage(playerid, RED, "Assault With A Deadly Weapon - Wanted Level 6");
shotsfired[playerid] = 0;
}
}
shotsfired[playerid] =+ 1; |
shotsfired[playerid] =+ 1; |
shotsfired[playerid] += 1;