Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(PlayerInfo[playerid][pWanted] >= 1)
- {
- if(InRWarPlayer[playerid] == 0)
- {
- new price = (PlayerInfo[playerid][pWanted] * 3000) + 750;
- new count;
- new stringw[258];
- for(new cop=0;cop<MAX_PLAYERS;cop++)
- {
- if(IsACop(cop) && ProxDetectorS(100.0, playerid, cop))
- {
- if(PlayerInfo[playerid][pLevel] >= 2)
- {
- format(stringw, sizeof(stringw), "~w~Running Suspect~r~Killed~n~Bonus~g~$%d", price);
- GameTextForPlayer(cop, stringw, 5000, 1);
- ConsumingMoney[cop] = 1;
- PlayerInfo[cop][pCash] += price;
- PlayerPlaySound(cop, 1058, 0.0, 0.0, 0.0);
- } else { SendClientMessage(cop, COLOR_GREY, "Acest suspect are Level 1 , nu primesti bani pentru prinderea acestuia"); }
- count = 1;
- }
- }
- if(count == 1)
- {
- PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash] - price;
- PlayerInfo[playerid][pWantedDeaths] += 1;
- PlayerInfo[playerid][pJailed] = 1;
- SetTimer("Checkjail",3000,false);
- PlayerInfo[playerid][pJailTime] = PlayerInfo[playerid][pWanted] * 300;
- format(stringw, sizeof(stringw), "* You are in Jail for %d Seconds and lose %s because of running away and getting shot by the Officer.", PlayerInfo[playerid][pJailTime], FormatMoney(price));
- SendClientMessage(playerid, COLOR_LIGHTRED, stringw);
- WantedPoints[playerid] = 0;
- Freezed[playerid] = 0;
- PlayerInfo[playerid][pWanted] = 0;
- }
- }
- }
- if(PlayerInfo[killerid][pJailed] == 1 || PlayerInfo[killerid][pJailed] == 2)
- {
- new KK[MAX_PLAYER_NAME];
- GetPlayerName(killerid, KK, sizeof(KK));
- PlayerInfo[killerid][pJailTime] += 30;
- SavePlayerData(playerid);
- format(string, 256, "<< Player %s has been freezed and + 30 seconds jail time for Jail-Fighting >>",KK);
- ProxDetector(15.0, playerid, string, COLOR_LIGHTRED,COLOR_LIGHTRED,COLOR_LIGHTRED,COLOR_LIGHTRED,COLOR_LIGHTRED);
- }
- else if (IsACop(playerid))
- {
- if(IsPlayerConnected(killerid))
- {
- if(kmember >= 4 || kleader >= 4 || gTeam[killerid] == 3 || gTeam[killerid] == 4)
- {
- if(GetPlayerState(killerid) == 1)
- {
- if(insala[playerid] == 1 || PlayerInfo[playerid][pJailed] == 1 || PlayerInfo[playerid][pJailed] == 2) return 1;
- if(insala[killerid] == 1 || PlayerInfo[killerid][pJailed] == 1 || PlayerInfo[killerid][pJailed] == 2) return 1;
- PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills] + 1;
- PlayerInfo[playerid][pDeaths] = PlayerInfo[playerid][pDeaths] + 1;
- PlayerInfo[killerid][pWanted] = PlayerInfo[killerid][pWanted] + 1;
- SendClientMessage(killerid, COLOR_LIGHTRED, "You commited a crime (First Degree Murder) [+1], Reporter: Witness");
- PlayerPlaySound(killerid, 1083, 0.0, 0.0, 0.0);
- SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid)+1);
- new killername[MAX_PLAYER_NAME];
- GetPlayerName(killerid, killername, sizeof(killername));
- new killerstring[258];
- format(killerstring, sizeof(killerstring), "[killed]You got killed by %s", killername);
- SendClientMessage(playerid, COLOR_RED, killerstring);
- }
- else if(GetPlayerState(killerid) == 2)
- {
- if(insala[playerid] == 1 || PlayerInfo[playerid][pJailed] == 1 || PlayerInfo[playerid][pJailed] == 2) return 1;
- if(insala[killerid] == 1 || PlayerInfo[killerid][pJailed] == 1 || PlayerInfo[killerid][pJailed] == 2) return 1;
- PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills] + 1;
- PlayerInfo[playerid][pDeaths] = PlayerInfo[playerid][pDeaths] + 1;
- PlayerInfo[killerid][pWanted] = PlayerInfo[killerid][pWanted] + 1;
- SendClientMessage(killerid, COLOR_LIGHTRED, "You commited a crime (Hit and Run) [+1], Reporter: Witness");
- PlayerPlaySound(killerid, 1083, 0.0, 0.0, 0.0);
- SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid)+1);
- new killername[MAX_PLAYER_NAME];
- GetPlayerName(killerid, killername, sizeof(killername));
- new killerstring[258];
- format(killerstring, sizeof(killerstring), "[killed]You got killed by %s", killername);
- SendClientMessage(playerid, COLOR_RED, killerstring);
- }
- }
- else if(IsACop(killerid))
- {
- new rtext[64];
- if(PlayerInfo[killerid][pMember] == 1 || PlayerInfo[killerid][pLeader] == 1)
- {
- rtext = "Police Force";
- }
- else if(PlayerInfo[killerid][pMember] == 2 || PlayerInfo[killerid][pLeader] == 2)
- {
- rtext = "F.B.I";
- }
- else if(PlayerInfo[killerid][pMember] == 3 || PlayerInfo[killerid][pLeader] == 3)
- {
- rtext = "National Guard";
- }
- new killername[MAX_PLAYER_NAME];
- GetPlayerName(killerid, killername, sizeof(killername));
- new killerstring[258];
- format(killerstring, sizeof(killerstring), "[killed]You got killed by %s({2641FE}%s{AA3333})", killername,rtext);
- SendClientMessage(playerid, COLOR_RED, killerstring);
- PlayerPlaySound(killerid, 1083, 0.0, 0.0, 0.0);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment