Guest User

Untitled

a guest
Oct 28th, 2012
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.07 KB | None | 0 0
  1. if(PlayerInfo[playerid][pWanted] >= 1)
  2. {
  3. if(InRWarPlayer[playerid] == 0)
  4. {
  5. new price = (PlayerInfo[playerid][pWanted] * 3000) + 750;
  6. new count;
  7. new stringw[258];
  8. for(new cop=0;cop<MAX_PLAYERS;cop++)
  9. {
  10. if(IsACop(cop) && ProxDetectorS(100.0, playerid, cop))
  11. {
  12. if(PlayerInfo[playerid][pLevel] >= 2)
  13. {
  14. format(stringw, sizeof(stringw), "~w~Running Suspect~r~Killed~n~Bonus~g~$%d", price);
  15. GameTextForPlayer(cop, stringw, 5000, 1);
  16. ConsumingMoney[cop] = 1;
  17. PlayerInfo[cop][pCash] += price;
  18. PlayerPlaySound(cop, 1058, 0.0, 0.0, 0.0);
  19. } else { SendClientMessage(cop, COLOR_GREY, "Acest suspect are Level 1 , nu primesti bani pentru prinderea acestuia"); }
  20. count = 1;
  21. }
  22. }
  23. if(count == 1)
  24. {
  25. PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash] - price;
  26. PlayerInfo[playerid][pWantedDeaths] += 1;
  27. PlayerInfo[playerid][pJailed] = 1;
  28. SetTimer("Checkjail",3000,false);
  29. PlayerInfo[playerid][pJailTime] = PlayerInfo[playerid][pWanted] * 300;
  30. 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));
  31. SendClientMessage(playerid, COLOR_LIGHTRED, stringw);
  32. WantedPoints[playerid] = 0;
  33. Freezed[playerid] = 0;
  34. PlayerInfo[playerid][pWanted] = 0;
  35. }
  36. }
  37. }
  38. if(PlayerInfo[killerid][pJailed] == 1 || PlayerInfo[killerid][pJailed] == 2)
  39. {
  40. new KK[MAX_PLAYER_NAME];
  41. GetPlayerName(killerid, KK, sizeof(KK));
  42. PlayerInfo[killerid][pJailTime] += 30;
  43. SavePlayerData(playerid);
  44. format(string, 256, "<< Player %s has been freezed and + 30 seconds jail time for Jail-Fighting >>",KK);
  45. ProxDetector(15.0, playerid, string, COLOR_LIGHTRED,COLOR_LIGHTRED,COLOR_LIGHTRED,COLOR_LIGHTRED,COLOR_LIGHTRED);
  46. }
  47. else if (IsACop(playerid))
  48. {
  49. if(IsPlayerConnected(killerid))
  50. {
  51. if(kmember >= 4 || kleader >= 4 || gTeam[killerid] == 3 || gTeam[killerid] == 4)
  52. {
  53. if(GetPlayerState(killerid) == 1)
  54. {
  55. if(insala[playerid] == 1 || PlayerInfo[playerid][pJailed] == 1 || PlayerInfo[playerid][pJailed] == 2) return 1;
  56. if(insala[killerid] == 1 || PlayerInfo[killerid][pJailed] == 1 || PlayerInfo[killerid][pJailed] == 2) return 1;
  57. PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills] + 1;
  58. PlayerInfo[playerid][pDeaths] = PlayerInfo[playerid][pDeaths] + 1;
  59. PlayerInfo[killerid][pWanted] = PlayerInfo[killerid][pWanted] + 1;
  60. SendClientMessage(killerid, COLOR_LIGHTRED, "You commited a crime (First Degree Murder) [+1], Reporter: Witness");
  61. PlayerPlaySound(killerid, 1083, 0.0, 0.0, 0.0);
  62. SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid)+1);
  63. new killername[MAX_PLAYER_NAME];
  64. GetPlayerName(killerid, killername, sizeof(killername));
  65. new killerstring[258];
  66. format(killerstring, sizeof(killerstring), "[killed]You got killed by %s", killername);
  67. SendClientMessage(playerid, COLOR_RED, killerstring);
  68. }
  69. else if(GetPlayerState(killerid) == 2)
  70. {
  71. if(insala[playerid] == 1 || PlayerInfo[playerid][pJailed] == 1 || PlayerInfo[playerid][pJailed] == 2) return 1;
  72. if(insala[killerid] == 1 || PlayerInfo[killerid][pJailed] == 1 || PlayerInfo[killerid][pJailed] == 2) return 1;
  73. PlayerInfo[killerid][pKills] = PlayerInfo[killerid][pKills] + 1;
  74. PlayerInfo[playerid][pDeaths] = PlayerInfo[playerid][pDeaths] + 1;
  75. PlayerInfo[killerid][pWanted] = PlayerInfo[killerid][pWanted] + 1;
  76. SendClientMessage(killerid, COLOR_LIGHTRED, "You commited a crime (Hit and Run) [+1], Reporter: Witness");
  77. PlayerPlaySound(killerid, 1083, 0.0, 0.0, 0.0);
  78. SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid)+1);
  79. new killername[MAX_PLAYER_NAME];
  80. GetPlayerName(killerid, killername, sizeof(killername));
  81. new killerstring[258];
  82. format(killerstring, sizeof(killerstring), "[killed]You got killed by %s", killername);
  83. SendClientMessage(playerid, COLOR_RED, killerstring);
  84. }
  85. }
  86. else if(IsACop(killerid))
  87. {
  88. new rtext[64];
  89. if(PlayerInfo[killerid][pMember] == 1 || PlayerInfo[killerid][pLeader] == 1)
  90. {
  91. rtext = "Police Force";
  92. }
  93. else if(PlayerInfo[killerid][pMember] == 2 || PlayerInfo[killerid][pLeader] == 2)
  94. {
  95. rtext = "F.B.I";
  96. }
  97. else if(PlayerInfo[killerid][pMember] == 3 || PlayerInfo[killerid][pLeader] == 3)
  98. {
  99. rtext = "National Guard";
  100. }
  101. new killername[MAX_PLAYER_NAME];
  102. GetPlayerName(killerid, killername, sizeof(killername));
  103. new killerstring[258];
  104. format(killerstring, sizeof(killerstring), "[killed]You got killed by %s({2641FE}%s{AA3333})", killername,rtext);
  105. SendClientMessage(playerid, COLOR_RED, killerstring);
  106. PlayerPlaySound(killerid, 1083, 0.0, 0.0, 0.0);
  107. }
  108. }
  109. }
Advertisement
Add Comment
Please, Sign In to add comment