Guest User

blast

a guest
Feb 7th, 2009
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.44 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define COLOR_GRAD2 0xBFC0C2FF
  4. #define COLOR_GREY 0xAFAFAFAA
  5. #define PlayerInfo
  6.  
  7.  
  8. // This is a comment
  9. // uncomment the line below if you want to write a filterscript
  10. //#define FILTERSCRIPT
  11.  
  12. #if defined FILTERSCRIPT
  13.  
  14. forward PirateShipScoreUpdate()
  15. forward PayPlayerInArea)
  16.  
  17.  
  18. public OnFilterScriptInit()
  19. {
  20. print("\n--------------------------------------");
  21. print(" Blank Filterscript by your name here");
  22. print("--------------------------------------\n");
  23. return 1;
  24. }
  25.  
  26. public OnFilterScriptExit()
  27. {
  28. return 1;
  29. }
  30.  
  31. #else
  32.  
  33. main()
  34. {
  35. print("\n----------------------------------");
  36. print(" Blank Gamemode by your name here");
  37. print("----------------------------------\n");
  38. }
  39.  
  40. #endif
  41.  
  42. public OnGameModeInit()
  43. {
  44. // Don't use these lines if it's a filterscript
  45. SetGameModeText("Blank Script");
  46. ShowPlayerMarkers(true);
  47. ShowNameTags(true);
  48. AddPlayerClass(1, 2017.6318, 1545.4016, 10.8292, 269.8567, 0, 0, 24, 300, -1, -1);
  49.  
  50. return 1;
  51. }
  52.  
  53. public OnGameModeExit()
  54. {
  55. return 1;
  56. }
  57.  
  58. public OnPlayerRequestClass(playerid, classid)
  59. {
  60. return 1;
  61. }
  62.  
  63. public OnPlayerRequestSpawn(playerid)
  64. {
  65. return 1;
  66. }
  67.  
  68. public OnPlayerConnect(playerid)
  69. {
  70. GameTextForPlayer(playerid, "~r~Welcome /help for instructions~b~", 5000, 5);
  71. return 1;
  72. }
  73.  
  74. public OnPlayerDisconnect(playerid, reason)
  75. {
  76. return 1;
  77. }
  78.  
  79. public OnPlayerSpawn(playerid)
  80. {
  81. return 1;
  82. }
  83.  
  84. public OnPlayerDeath(playerid, killerid, reason)
  85. {
  86. return 1;
  87. }
  88.  
  89. public OnVehicleSpawn(vehicleid)
  90. {
  91. return 1;
  92. }
  93.  
  94. public OnVehicleDeath(vehicleid, killerid)
  95. {
  96. return 1;
  97. }
  98.  
  99. public OnPlayerText(playerid, text[])
  100. {
  101. return 1;
  102. }
  103.  
  104. public OnPlayerPrivmsg(playerid, recieverid, text[])
  105. {
  106. return 1;
  107. }
  108.  
  109. public OnPlayerCommandText(playerid, cmdtext[])
  110. {
  111. return 1;
  112. }
  113.  
  114. public OnPlayerInfoChange(playerid)
  115. {
  116. return 1;
  117. }
  118.  
  119. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  120. {
  121. return 1;
  122. }
  123.  
  124. public OnPlayerExitVehicle(playerid, vehicleid)
  125. {
  126. return 1;
  127. }
  128.  
  129. public OnPlayerStateChange(playerid, newstate, oldstate)
  130. {
  131. return 1;
  132. }
  133.  
  134. public OnPlayerEnterCheckpoint(playerid)
  135. {
  136. return 1;
  137. }
  138.  
  139. public OnPlayerLeaveCheckpoint(playerid)
  140. {
  141. return 1;
  142. }
  143.  
  144. public OnPlayerEnterRaceCheckpoint(playerid)
  145. {
  146. return 1;
  147. }
  148.  
  149. public OnPlayerLeaveRaceCheckpoint(playerid)
  150. {
  151. return 1;
  152. }
  153.  
  154. public OnRconCommand(cmd[])
  155. {
  156.  
  157. return 1;
  158. }
  159.  
  160. public OnObjectMoved(objectid)
  161. {
  162. return 1;
  163. }
  164.  
  165. public OnPlayerObjectMoved(playerid, objectid)
  166. {
  167. return 1;
  168. }
  169.  
  170. public OnPlayerPickUpPickup(playerid, pickupid)
  171. {
  172. return 1;
  173. }
  174.  
  175. public OnPlayerSelectedMenuRow(playerid, row)
  176. {
  177. return 1;
  178. }
  179.  
  180. public OnPlayerExitedMenu(playerid)
  181. {
  182. return 1;
  183. }
  184. public PirateShipScoreUpdate()
  185. {
  186. for(new i=0; i<MAX_PLAYERS; i++)
  187. {
  188. PayPlayerInArea(i, 1995.5, 1518.0, 2006.0, 1569.0, 200);
  189. PayPlayerInArea(i, 1516.1332, -1380.5281, 1568.4066, -1336.3019, 200);
  190. PayPlayerInArea(i, -1988.4744, 639.1348, -1917.0579, 715.5820, 200);
  191. // {
  192. // SendClientMessage(i, COLOR_YELLOW, "Ganaste dinero por estar en el barco de la base de SF");
  193. // }
  194. }
  195. }
  196.  
  197. public PayPlayerInArea(playerID, Float:x1, Float:y1, Float:x2, Float:y2, cash)
  198. {
  199. if(IsPlayerConnected(playerID))
  200. {
  201. new Float:X, Float:Y, Float:Z;
  202.  
  203. GetPlayerPos(playerID, X, Y, Z);
  204. if(X >= x1 && X <= x2 && Y >= y1 && Y <= y2)
  205. {
  206. GivePlayerMoney(playerID, cash);
  207. return 1;
  208. }
  209. }
  210. return 0;
  211. }
Advertisement
Add Comment
Please, Sign In to add comment