Guest User

BRINKSJOB

a guest
Jul 19th, 2017
474
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.70 KB | None | 0 0
  1. [COLOR="DeepSkyBlue"]This is my first post on this forum and I hope this script will like you
  2. The Codes of this Job[/COLOR]
  3. /* BRinks job this job is for roleplay*/
  4. #include <a_samp>
  5. #include <streamer>
  6.  
  7. #define COLOR_VIP 0xC93CCE00
  8. #define COLOR_BLUE 0x0000A0C8
  9. #define COLOR_ORANGE 0xFF8000FF
  10. #define COLOR_YELLOW 0xFFFF00AA
  11. #define COLOR_FORSTATS 0xFFFF91AA
  12. #define COLOR_HOUSEGREEN 0x00E605AA
  13. #define COLOR_GREEN 0x33AA33AA
  14. #define COLOR_RED 0xF30303AA
  15. #define COLOR_KALTER 0x33BBFFAA
  16. #define COLOR_LIGHTGREEN 0x9ACD32AA
  17. #define COLOR_LIME 0x00FF00FF
  18. #define COLOR_CYAN 0x40FFFFFF
  19. #define COLOR_PURPLE 0xC2A2DAAA
  20. #define COLOR_BLACK 0x000000AA
  21. #define COLOR_WHITE 0xFFFFFFAA
  22. #define COLOR_FADE1 0xE6E6E6E6
  23. #define COLOR_FADE2 0xC8C8C8C8
  24. #define COLOR_FADE3 0xAAAAAAAA
  25. #define COLOR_FADE4 0x8C8C8C8C
  26. #define COLOR_FADE5 0x6E6E6E6E
  27. #define COLOR_LIGHTRED 0xFF6347AA
  28. #define COLOR_NEWS 0xFFA500AA
  29. #define COLOR_LIGHTBLUE 0x33CCFFAA
  30.  
  31. new BrinksJob[256];
  32.  
  33. public OnFilterScriptInit()
  34. {
  35. CreateDynamic3DTextLabel("Brinks Job\n/getmoney to start the job",COLOR_LIGHTBLUE,1546.7836,-1009.7602,23.9140+0.6,10.0); // Pickup Point (LA)
  36. CreatePickup(1247, 23, 1528.082397, -1677.978637, 5.890625, -1); //
  37. //trucks
  38. AddStaticVehicle(428,1542.6086,-1024.1860,24.0305,343.6036,1,3); // labrinks
  39. AddStaticVehicle(428,1546.9899,-1025.3708,24.0302,343.7522,1,3); // labrinks
  40. AddStaticVehicle(428,1551.1394,-1027.1367,24.0295,344.5570,1,3); // labrinks
  41. AddStaticVehicle(428,1558.3331,-1012.1339,24.0309,181.2181,1,3); // labrinks
  42. AddStaticVehicle(428,1562.7538,-1011.7735,24.0315,181.9679,1,3); // labrinks
  43. }
  44. public OnPlayerCommandText(playerid, cmdtext[])
  45. {
  46. if (strcmp("/getmoney", cmdtext, true, 10) == 0)
  47. {
  48. if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  49. {
  50. if(!IsPlayerInRangeOfPoint(playerid,5.0,2297.3889,-15.1795,26.4521))
  51. {
  52. SendClientMessage(playerid, COLOR_WHITE, " You are not in the place where you take the money!");
  53. SetPlayerCheckpoint(playerid,2297.3889,-15.1795,26.4521,5);
  54. return 1;
  55. }
  56. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 428)
  57. {
  58. BrinksJob[playerid] = 1;
  59. SendClientMessage(playerid,COLOR_LIGHTBLUE,"* Go in the Checkpoint to deliver the money");
  60. SetPlayerCheckpoint(playerid,1528.082397, -1677.978637, 5.890625,5);
  61. return 1;
  62. }
  63. else
  64. {
  65. SendClientMessage(playerid, COLOR_RED,"You have to be in a brinks truck to start the job");
  66. }
  67. }
  68. }
  69. return 0;
  70. }
  71. public OnPlayerEnterCheckpoint(playerid)
  72. {
  73. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 428)
  74. {
  75. DisablePlayerCheckpoint(playerid);
  76. GivePlayerMoney(playerid,2000);
  77. SendClientMessage(playerid,COLOR_YELLOW,"* You successfully transported and you get 2000$!");
  78. }
  79. return 1;
  80. }
  81. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  82. {
  83. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 428)
  84. {
  85. SendClientMessage(playerid, COLOR_RED, "* You can start the brinks job by using /getmoney");
  86. }
  87. return 0;
  88. }
  89. forward BackToTruck(playerid);
  90. public BackToTruck(playerid)
  91. {
  92. BrinksJob[playerid] = 0;
  93. SendClientMessage(playerid, -1, "You have lose the money,to start again,/getmoney in the checkpoint");
  94. SetPlayerCheckpoint(playerid,2297.3889,-15.1795,26.4521,5);
  95. }
  96.  
  97. public OnPlayerExitVehicle(playerid, vehicleid)
  98. {
  99. if(BrinksJob[playerid] == 1)
  100. {
  101. SendClientMessage(playerid, COLOR_RED, "* You have ten seconds to back in your trucks,or you will lose money!");
  102. SetTimerEx("BackToTruck", 10000, false, "i", playerid);
  103. }
  104. }
  105.  
  106.  
  107. The link in pastebin:[url]https://pastebin.com/8JX04HCZ[/url]
Advertisement
Add Comment
Please, Sign In to add comment