Advertisement
Guest User

Basic Sistem Quest

a guest
May 20th, 2016
1,433
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.92 KB | None | 0 0
  1.  
  2. #include <a_samp>
  3. //Variables//
  4. new Variables[MAX_PLAYERS];
  5. new Variables2[MAX_PLAYERS];
  6. new Variables3[MAX_PLAYERS];
  7. new Variables4[MAX_PLAYERS];
  8. new Variables5[MAX_PLAYERS];
  9. //Variables//
  10.  
  11. #if defined FILTERSCRIPT
  12.  
  13. public OnFilterScriptInit()
  14. {
  15. print("\n--------------------------------------");
  16. print(" Blank Filterscript by your name here");
  17. print("--------------------------------------\n");
  18. return 1;
  19. }
  20.  
  21. public OnFilterScriptExit()
  22. {
  23. return 1;
  24. }
  25.  
  26. #else
  27.  
  28. main()
  29. {
  30. print("\n----------------------------------");
  31. print(" Blank Gamemode by your name here");
  32. print("----------------------------------\n");
  33. }
  34.  
  35. #endif
  36.  
  37. public OnGameModeInit()
  38. {
  39. CreatePickup(1034, 1,2028.2664,1327.3652,10.8203,0);
  40. CreatePickup(1034, 1,2022.1030,1340.3286,10.8130,0);
  41. CreatePickup(1034, 1,2016.2622,1330.5934,9.4595,0);
  42. CreatePickup(1034, 1,2014.6881,1318.3464,9.2578,0);
  43. CreatePickup(1034, 1,2000.0020,1316.7673,9.2578,0);
  44. return 1;
  45. }
  46.  
  47. public OnGameModeExit()
  48. {
  49. return 1;
  50. }
  51.  
  52. public OnPlayerRequestClass(playerid, classid)
  53. {
  54. return 1;
  55. }
  56.  
  57. public OnPlayerConnect(playerid)
  58. {
  59. return 1;
  60. }
  61.  
  62. public OnPlayerDisconnect(playerid, reason)
  63. {
  64. return 1;
  65. }
  66.  
  67. public OnPlayerSpawn(playerid)
  68. {
  69. return 1;
  70. }
  71.  
  72. public OnPlayerDeath(playerid, killerid, reason)
  73. {
  74. return 1;
  75. }
  76.  
  77. public OnVehicleSpawn(vehicleid)
  78. {
  79. return 1;
  80. }
  81.  
  82. public OnVehicleDeath(vehicleid, killerid)
  83. {
  84. return 1;
  85. }
  86.  
  87. public OnPlayerText(playerid, text[])
  88. {
  89. return 1;
  90. }
  91.  
  92. public OnPlayerCommandText(playerid, cmdtext[])
  93. {
  94. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  95. {
  96. // Do something here
  97. return 1;
  98. }
  99. return 0;
  100. }
  101.  
  102. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  103. {
  104. return 1;
  105. }
  106.  
  107. public OnPlayerExitVehicle(playerid, vehicleid)
  108. {
  109. return 1;
  110. }
  111.  
  112. public OnPlayerStateChange(playerid, newstate, oldstate)
  113. {
  114. return 1;
  115. }
  116.  
  117. public OnPlayerEnterCheckpoint(playerid)
  118. {
  119. return 1;
  120. }
  121.  
  122. public OnPlayerLeaveCheckpoint(playerid)
  123. {
  124. return 1;
  125. }
  126.  
  127. public OnPlayerEnterRaceCheckpoint(playerid)
  128. {
  129. return 1;
  130. }
  131.  
  132. public OnPlayerLeaveRaceCheckpoint(playerid)
  133. {
  134. return 1;
  135. }
  136.  
  137. public OnRconCommand(cmd[])
  138. {
  139. return 1;
  140. }
  141.  
  142. public OnPlayerRequestSpawn(playerid)
  143. {
  144. return 1;
  145. }
  146.  
  147. public OnObjectMoved(objectid)
  148. {
  149. return 1;
  150. }
  151.  
  152. public OnPlayerObjectMoved(playerid, objectid)
  153. {
  154. return 1;
  155. }
  156.  
  157. public OnPlayerPickUpPickup(playerid, pickupid)
  158. {
  159. if(IsPlayerInRangeOfPoint(playerid, 2.0,2028.2664,1327.3652,10.8203))
  160. {
  161. if(Variables[playerid] == 0)
  162. {
  163. Variables[playerid] = 1;
  164. GivePlayerMoney(playerid, 5000);
  165. SendClientMessage(playerid, 0x00FFFFC8, "Felicitari ai primit 5.000 $");
  166. }
  167. }
  168. if(IsPlayerInRangeOfPoint(playerid, 2.0,2022.1030,1340.3286,10.8130))
  169. {
  170. if(Variables2[playerid] == 0)
  171. {
  172. Variables2[playerid] = 1;
  173. GivePlayerMoney(playerid, 5000);
  174. SendClientMessage(playerid, 0x00FFFFC8, "Felicitari ai primit 5.000 $");
  175. }
  176. }
  177. if(IsPlayerInRangeOfPoint(playerid, 2.0,2016.2622,1330.5934,9.4595))
  178. {
  179. if(Variables3[playerid] == 0)
  180. {
  181. Variables3[playerid] = 1;
  182. GivePlayerMoney(playerid, 5000);
  183. SendClientMessage(playerid, 0x00FFFFC8, "Felicitari ai primit 5.000 $");
  184. }
  185. }
  186. if(IsPlayerInRangeOfPoint(playerid, 2.0,2014.6881,1318.3464,9.2578))
  187. {
  188. if(Variables4[playerid] == 0)
  189. {
  190. Variables4[playerid] = 1;
  191. GivePlayerMoney(playerid, 5000);
  192. SendClientMessage(playerid, 0x00FFFFC8, "Felicitari ai primit 5.000 $");
  193. }
  194. }
  195. if(IsPlayerInRangeOfPoint(playerid, 2.0,2000.0020,1316.7673,9.2578))
  196. {
  197. if(Variables5[playerid] == 0)
  198. {
  199. Variables5[playerid] = 1;
  200. GivePlayerMoney(playerid, 5000);
  201. SendClientMessage(playerid, 0x00FFFFC8, "Felicitari ai primit 5.000 $");
  202. }
  203. }
  204. return 1;
  205. }
  206.  
  207. public OnVehicleMod(playerid, vehicleid, componentid)
  208. {
  209. return 1;
  210. }
  211.  
  212. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  213. {
  214. return 1;
  215. }
  216.  
  217. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  218. {
  219. return 1;
  220. }
  221.  
  222. public OnPlayerSelectedMenuRow(playerid, row)
  223. {
  224. return 1;
  225. }
  226.  
  227. public OnPlayerExitedMenu(playerid)
  228. {
  229. return 1;
  230. }
  231.  
  232. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  233. {
  234. return 1;
  235. }
  236.  
  237. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  238. {
  239. return 1;
  240. }
  241.  
  242. public OnRconLoginAttempt(ip[], password[], success)
  243. {
  244. return 1;
  245. }
  246.  
  247. public OnPlayerUpdate(playerid)
  248. {
  249. return 1;
  250. }
  251.  
  252. public OnPlayerStreamIn(playerid, forplayerid)
  253. {
  254. return 1;
  255. }
  256.  
  257. public OnPlayerStreamOut(playerid, forplayerid)
  258. {
  259. return 1;
  260. }
  261.  
  262. public OnVehicleStreamIn(vehicleid, forplayerid)
  263. {
  264. return 1;
  265. }
  266.  
  267. public OnVehicleStreamOut(vehicleid, forplayerid)
  268. {
  269. return 1;
  270. }
  271.  
  272. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  273. {
  274. return 1;
  275. }
  276.  
  277. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  278. {
  279. return 1;
  280. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement