Advertisement
Guest User

Untitled

a guest
Jan 15th, 2011
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.58 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6.  
  7. new Float: Pos[3];
  8. new pickmoney;
  9. new sacchettosoldi;
  10.  
  11. #define COLOR_WHITE 0xFFFFFFAA
  12. #if defined FILTERSCRIPT
  13.  
  14. public OnFilterScriptInit()
  15. {
  16. print("\n--------------------------------------");
  17. print(" [FS:]Drop Money by mitosking");
  18. print("--------------------------------------\n");
  19. return 1;
  20. }
  21.  
  22. public OnFilterScriptExit()
  23. {
  24. return 1;
  25. }
  26.  
  27. #endif
  28.  
  29. public OnPlayerRequestClass(playerid, classid)
  30. {
  31. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  32. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  33. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  34. return 1;
  35. }
  36.  
  37. public OnPlayerConnect(playerid)
  38. {
  39. return 1;
  40. }
  41.  
  42. public OnPlayerDisconnect(playerid, reason)
  43. {
  44. return 1;
  45. }
  46.  
  47. public OnPlayerSpawn(playerid)
  48. {
  49. return 1;
  50. }
  51.  
  52. public OnPlayerDeath(playerid, killerid, reason)
  53. {
  54. sacchettosoldi = GetPlayerMoney(playerid);
  55. GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
  56. pickmoney = CreatePickup(1212, 3, Pos[0]+2, Pos[1]+2, Pos[2], -1);
  57. return 1;
  58. }
  59.  
  60. public OnVehicleSpawn(vehicleid)
  61. {
  62. return 1;
  63. }
  64.  
  65. public OnVehicleDeath(vehicleid, killerid)
  66. {
  67. return 1;
  68. }
  69.  
  70. public OnPlayerText(playerid, text[])
  71. {
  72. return 1;
  73. }
  74.  
  75. public OnPlayerCommandText(playerid, cmdtext[])
  76. {
  77. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  78. {
  79. // Do something here
  80. return 1;
  81. }
  82. return 0;
  83. }
  84.  
  85. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  86. {
  87. return 1;
  88. }
  89.  
  90. public OnPlayerExitVehicle(playerid, vehicleid)
  91. {
  92. return 1;
  93. }
  94.  
  95. public OnPlayerStateChange(playerid, newstate, oldstate)
  96. {
  97. return 1;
  98. }
  99.  
  100. public OnPlayerEnterCheckpoint(playerid)
  101. {
  102. return 1;
  103. }
  104.  
  105. public OnPlayerLeaveCheckpoint(playerid)
  106. {
  107. return 1;
  108. }
  109.  
  110. public OnPlayerEnterRaceCheckpoint(playerid)
  111. {
  112. return 1;
  113. }
  114.  
  115. public OnPlayerLeaveRaceCheckpoint(playerid)
  116. {
  117. return 1;
  118. }
  119.  
  120. public OnRconCommand(cmd[])
  121. {
  122. return 1;
  123. }
  124.  
  125. public OnPlayerRequestSpawn(playerid)
  126. {
  127. return 1;
  128. }
  129.  
  130. public OnObjectMoved(objectid)
  131. {
  132. return 1;
  133. }
  134.  
  135. public OnPlayerObjectMoved(playerid, objectid)
  136. {
  137. return 1;
  138. }
  139.  
  140. public OnPlayerPickUpPickup(playerid, pickupid)
  141. {
  142. new messaggio[150];
  143. if(pickupid == pickmoney)
  144. {
  145. format(messaggio, 150, "Hai trovato {33AA33}%d$", sacchettosoldi);
  146. SendClientMessage(playerid, COLOR_WHITE, messaggio);
  147. GivePlayerMoney(playerid, sacchettosoldi);
  148. DestroyPickup(pickmoney);
  149. }
  150. return 1;
  151. }
  152.  
  153. public OnVehicleMod(playerid, vehicleid, componentid)
  154. {
  155. return 1;
  156. }
  157.  
  158. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  159. {
  160. return 1;
  161. }
  162.  
  163. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  164. {
  165. return 1;
  166. }
  167.  
  168. public OnPlayerSelectedMenuRow(playerid, row)
  169. {
  170. return 1;
  171. }
  172.  
  173. public OnPlayerExitedMenu(playerid)
  174. {
  175. return 1;
  176. }
  177.  
  178. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  179. {
  180. return 1;
  181. }
  182.  
  183. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  184. {
  185. return 1;
  186. }
  187.  
  188. public OnRconLoginAttempt(ip[], password[], success)
  189. {
  190. return 1;
  191. }
  192.  
  193. public OnPlayerUpdate(playerid)
  194. {
  195. return 1;
  196. }
  197.  
  198. public OnPlayerStreamIn(playerid, forplayerid)
  199. {
  200. return 1;
  201. }
  202.  
  203. public OnPlayerStreamOut(playerid, forplayerid)
  204. {
  205. return 1;
  206. }
  207.  
  208. public OnVehicleStreamIn(vehicleid, forplayerid)
  209. {
  210. return 1;
  211. }
  212.  
  213. public OnVehicleStreamOut(vehicleid, forplayerid)
  214. {
  215. return 1;
  216. }
  217.  
  218. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  219. {
  220. return 1;
  221. }
  222.  
  223. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  224. {
  225. return 1;
  226. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement