Advertisement
Guest User

PLM

a guest
May 3rd, 2020
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.55 KB | None | 0 0
  1. task DecreaseTimer[5000]() {
  2. new string[256];
  3. foreach(PersonalVSpawned, idd) if(CarInfo[idd][cTime] < gettime() && CarInfo[idd][cTime] != -1) DestroyPlayerCar(idd);
  4.  
  5. foreach(Player, i) {
  6. if(!IsPlayerConnected(i) && IsPlayerLogged[i] != 1)
  7. continue;
  8.  
  9. new Float: playerArmour;
  10. GetPlayerArmour(i, playerArmour);
  11. if(playerArmour == 100 && PlayerInfo[i][pAdmin] == 0 && GetPVarInt(i, "Armour") == 0) {
  12. if(ServerSystem[3] == 0) NightBot(i, "Cheats (armour-hack)");
  13. }
  14. //if(FPS2[i] == 0 && AFKSeconds[i] > 120 && PlayerInfo[i][pSleeping] == 0) NightBot(i, "rakdroid");
  15. new Float: playerHealth;
  16. GetPlayerArmour(i, playerHealth);
  17. if(playerHealth == 100 && PlayerInfo[i][pAdmin] == 0) {
  18. if(ServerSystem[8] == 0) NightBot(i, "Cheats (health-hack)");
  19. }
  20.  
  21. if(PlayerInfo[i][pWantedLevel] >= 1 && WantedTime[i] == 10) {
  22. WantedTime[i] = 0;
  23. PlayerInfo[i][pWantedLevel] --;
  24. SetPlayerWantedLevel(i, PlayerInfo[i][pWantedLevel]);
  25. Update(i, pWantedLevelx);
  26. if(PlayerInfo[i][pWantedLevel] == 0) {
  27. SCM(i, COLOR_YELLOW, "Acum nu mai ai wanted deoarece politia ti-a pierdut urma!");
  28. PlayerTextDrawHide(i, WantedTD[i]);
  29. ClearCrime(i);
  30. finishAchievement(i, 15);
  31. }
  32. else {
  33. format(string, sizeof(string), "Politia iti pierde urma! Wanted Actual: %d", PlayerInfo[i][pWantedLevel]);
  34. SCM(i, COLOR_YELLOW, string);
  35. }
  36. format(string, sizeof(string), "%s [%d] lost 1 wanted level. W: %d", GetName(i), i, PlayerInfo[i][pWantedLevel]);
  37. SendTeamMessage(14, 0x2e64feFF, string);
  38. SendTeamMessage(3, COLOR_DBLUE, string);
  39. SendTeamMessage(2, COLOR_DBLUE, string);
  40. SendTeamMessage(1, COLOR_DBLUE, string);
  41. }
  42.  
  43. if(IsPlayerInRangeOfPoint(i, 30.0, 184.3529,-1825.4983,8.7530)) {
  44. if(GetPVarInt(i, "Listening") == 0) {
  45. PlayAudioStreamForPlayer(i, beachlink, 184.3529,-1825.4983,8.7530, 30.0, 1);
  46. SetPVarInt(i, "Listening", 1);
  47. }
  48. }
  49. else {
  50. if(GetPVarInt(i, "Listening") == 1) SetPVarInt(i, "Listening", 0);
  51. }
  52.  
  53. // -- Variables
  54. for(new t = 0; t < 18; t++) {
  55. if(DeelayCommand[i][t] != 0) {
  56. DeelayCommand[i][t] -= 5;
  57. if(DeelayCommand[i][t] < 0) DeelayCommand[i][t] = 0;
  58. }
  59. }
  60. for(new t = 0; t < 13; t++) {
  61. if(JobDeelay[i][t] != 0) {
  62. JobDeelay[i][t] -= 5;
  63. if(JobDeelay[i][t] < 0) JobDeelay[i][t] = 0;
  64. }
  65. }
  66.  
  67. if(PlayerTime[i][0] != 0) PlayerTime[i][0] -= 5;
  68. if(PlayerTime[i][0] < 0) PlayerTime[i][0] = 0;
  69.  
  70. if(PlayerInfo[i][pReportTime] >= 1) {
  71. PlayerInfo[i][pReportTime] -= 5;
  72. if(PlayerInfo[i][pReportTime] < 0) PlayerInfo[i][pReportTime] = 0;
  73. }
  74. if(PlayerInfo[i][pNewbieMute] >= 1) {
  75. PlayerInfo[i][pNewbieMute] -= 5;
  76. if(PlayerInfo[i][pNewbieMute] < 0) PlayerInfo[i][pNewbieMute] = 0;
  77. }
  78. if(FreezeTime[i] != 0) {
  79. FreezeTime[i] -= 5;
  80. if(FreezeTime[i] < 0) FreezeTime[i] = 0;
  81. if(FreezeTime[i] == 0) {
  82. SCM(i, COLOR_LIGHTBLUE, "Acum nu mai ai freeze!");
  83. TogglePlayerControllable(i, 1);
  84. }
  85. }
  86.  
  87. if(PlayerToPoint(50, i, -2317.8091,-1637.5575,483.7031)) {
  88. for(new m; m < 2; m++) {
  89. if(PlayerInfo[i][pDailyMission][m] == 7) CheckMission(i, m);
  90. }
  91. }
  92. if(PlayerToPoint(50, i, 1962.4126,-2193.3279,13.5469)) {
  93. for(new m; m < 2; m++) {
  94. if(PlayerInfo[i][pDailyMission][m] == 8) CheckMission(i, m);
  95. }
  96. }
  97. if(PlayerToPoint(100, i, 1338.6273,2153.1045,11.0578)) {
  98. for(new m; m < 2; m++) {
  99. if(PlayerInfo[i][pDailyMission][m] == 9) CheckMission(i, m);
  100. }
  101. }
  102. }
  103. return true;
  104. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement