23.01.2013, 11:59
I want if player shot a player first time so he get wanted lvl 3 msg and 2nd time shoot again with wanted lvl 3 so get wanted lvl 6 star msg, if he don't have a star so he get again wanted lvl 3 hope u understand me or don't so pls ask to me for explain.
Код:
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; }