Guest User

Untitled

a guest
Oct 2nd, 2014
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.20 KB | None | 0 0
  1. /////////////////////////////////////AKS DOSTAVLJANJE/////////////////////////////////////
  2. if(Dostavljanje[playerid] == 1 && CID >= akscar[0] && CID <= akscar[3] && GetPlayerState(playerid) == 2)
  3. {
  4. if(IsPlayerInRangeOfPoint(playerid, 3.0, 840.5473,-1482.7014,13.4710))
  5. {
  6. GameTextForPlayer(playerid, "~y~Nastavite sa dostavom", 3000, 3);
  7. SetPlayerCheckpoint(playerid,882.6514,-1795.6277,13.6163, 3.0);
  8. Dostavljanje[playerid] = 2;
  9. }
  10. }
  11. if(Dostavljanje[playerid] == 2 && CID >= akscar[0] && CID <= akscar[3] && GetPlayerState(playerid) == 2)
  12. {
  13. if(IsPlayerInRangeOfPoint(playerid, 3.0, 882.6514,-1795.6277,13.6163))
  14. {
  15. GameTextForPlayer(playerid, "~y~Nastavite sa dostavom", 3000, 3);
  16. SetPlayerCheckpoint(playerid,315.4244,-1774.5035,4.5998, 3.0);
  17. Dostavljanje[playerid] = 3;
  18. }
  19. }
  20. if(Dostavljanje[playerid] == 3 && CID >= akscar[0] && CID <= akscar[3] && GetPlayerState(playerid) == 2)
  21. {
  22. if(IsPlayerInRangeOfPoint(playerid, 3.0, 315.4244,-1774.5035,4.5998))
  23. {
  24. GameTextForPlayer(playerid, "~y~Nastavite sa dostavom", 3000, 3);
  25. SetPlayerCheckpoint(playerid,1371.1663,-1843.3867,13.4536, 3.0);
  26. Dostavljanje[playerid] = 4;
  27. }
  28. }
  29. if(Dostavljanje[playerid] == 4 && CID >= akscar[0] && CID <= akscar[3] && GetPlayerState(playerid) == 2)
  30. {
  31. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1371.1663,-1843.3867,13.4536))
  32. {
  33. GameTextForPlayer(playerid, "~y~Nastavite sa dostavom", 3000, 3);
  34. SetPlayerCheckpoint(playerid,1894.2920,-1131.2144,24.1194, 3.0);
  35. Dostavljanje[playerid] = 5;
  36. }
  37. }
  38. if(Dostavljanje[playerid] == 5 && CID >= akscar[0] && CID <= akscar[3] && GetPlayerState(playerid) == 2)
  39. {
  40. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1894.2920,-1131.2144,24.1194))
  41. {
  42. GameTextForPlayer(playerid, "~y~Nastavite sa dostavom", 3000, 3);
  43. SetPlayerCheckpoint(playerid,1409.2632,-932.3252,35.3451, 3.0);
  44. Dostavljanje[playerid] = 6;
  45. }
  46. }
  47. if(Dostavljanje[playerid] == 6 && CID >= akscar[0] && CID <= akscar[3] && GetPlayerState(playerid) == 2)
  48. {
  49. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1409.2632,-932.3252,35.3451))
  50. {
  51. GameTextForPlayer(playerid, "~y~Nastavite sa dostavom", 3000, 3);
  52. SetPlayerCheckpoint(playerid,1497.7458,-693.9975,94.6250, 3.0);
  53. Dostavljanje[playerid] = 7;
  54. }
  55. }
  56. if(Dostavljanje[playerid] == 7 && CID >= akscar[0] && CID <= akscar[3] && GetPlayerState(playerid) == 2)
  57. {
  58. if(IsPlayerInRangeOfPoint(playerid, 3.0, 1497.7458,-693.9975,94.6250))
  59. {
  60. GameTextForPlayer(playerid, "~y~Nastavite sa dostavom", 3000, 3);
  61. SetPlayerCheckpoint(playerid,852.2112,-743.2109,94.8438, 3.0);
  62. Dostavljanje[playerid] = 8;
  63. }
  64. }
  65. if(Dostavljanje[playerid] == 8 && CID >= akscar[0] && CID <= akscar[3] && GetPlayerState(playerid) == 2)
  66. {
  67. if(IsPlayerInRangeOfPoint(playerid, 3.0, 852.2112,-743.2109,94.8438))
  68. {
  69. GameTextForPlayer(playerid, "~y~Nastavite sa dostavom", 3000, 3);
  70. SetPlayerCheckpoint(playerid,-72.5933,-1578.7609,2.4921, 3.0);
  71. Dostavljanje[playerid] = 9;
  72. }
  73. }
  74. if(Dostavljanje[playerid] == 9 && CID >= akscar[0] && CID <= akscar[3] && GetPlayerState(playerid) == 2)
  75. {
  76. if(IsPlayerInRangeOfPoint(playerid, 3.0, -72.5933,-1578.7609,2.4921))
  77. {
  78. GameTextForPlayer(playerid, "~y~Jos jedna dostava~n~je ostala", 3000, 3);
  79. SetPlayerCheckpoint(playerid,792.9355,-1762.4487,13.2994, 3.0);
  80. Dostavljanje[playerid] = 10;
  81. }
  82. }
  83. if(Dostavljanje[playerid] == 10 && CID >= akscar[0] && CID <= akscar[3] && GetPlayerState(playerid) == 2)
  84. {
  85. if(IsPlayerInRangeOfPoint(playerid, 3.0, 792.9355,-1762.4487,13.2994))
  86. {
  87. new bonus = random(265), string[120];
  88. g_NovacPlus(playerid, 1400+bonus);
  89. format(string,sizeof(string),""BELA"Zavrsili ste dostavu!\n\n"BELA"Plata: "SPLAVA"500$\n"BELA"Bonus: "SPLAVA"%d$",bonus);
  90. ShowPlayerDialog(playerid,DIALOG_ISPLATA,DIALOG_STYLE_MSGBOX,"Kraj Dostave",string,"Ok","");
  91. Dostavljanje[playerid] = 0; DisablePlayerCheckpoint(playerid); FirmaNovac(100, 200);
  92. }
  93. }
Advertisement
Add Comment
Please, Sign In to add comment