Advertisement
Guest User

robcasino[FS]

a guest
Jun 2nd, 2013
516
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.13 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. new mypickup;
  7.  
  8. #if defined FILTERSCRIPT
  9.  
  10. public OnFilterScriptInit()
  11. {
  12. print("\n--------------------------------------");
  13. print(" Blank Filterscript by your name here");
  14. print("--------------------------------------\n");
  15. return 1;
  16. }
  17.  
  18. public OnFilterScriptExit()
  19. {
  20. return 1;
  21. }
  22.  
  23. #else
  24.  
  25. main()
  26. {
  27. print("\n----------------------------------");
  28. print(" Blank Gamemode by your name here");
  29. print("----------------------------------\n");
  30. }
  31.  
  32. #endif
  33.  
  34. public OnGameModeInit()
  35. {
  36. mypickup = CreatePickup(1239, 3, 2236.0671,1616.4291,1006.1803, -1);
  37. SetGameModeText("Blank Script");
  38. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  39. return 1;
  40. }
  41.  
  42. public OnGameModeExit()
  43. {
  44. return 1;
  45. }
  46.  
  47. public OnPlayerRequestClass(playerid, classid)
  48. {
  49. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  50. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  51. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  52. return 1;
  53. }
  54.  
  55. public OnPlayerConnect(playerid)
  56. {
  57. return 1;
  58. }
  59.  
  60. public OnPlayerDisconnect(playerid, reason)
  61. {
  62. return 1;
  63. }
  64.  
  65. public OnPlayerSpawn(playerid)
  66. {
  67. return 1;
  68. }
  69.  
  70. public OnPlayerDeath(playerid, killerid, reason)
  71. {
  72. return 1;
  73. }
  74.  
  75. public OnVehicleSpawn(vehicleid)
  76. {
  77. return 1;
  78. }
  79.  
  80. public OnVehicleDeath(vehicleid, killerid)
  81. {
  82. return 1;
  83. }
  84.  
  85. public OnPlayerText(playerid, text[])
  86. {
  87. return 1;
  88. }
  89.  
  90. public OnPlayerCommandText(playerid, cmdtext[])
  91. {
  92. if (strcmp("/robcasino", cmdtext, true, 10) == 0)
  93. {
  94. SetPlayerPos(playerid, 2192.6443,1676.2549,12.3672);
  95. // Do something here
  96. return 1;
  97. }
  98. return 0;
  99. }
  100.  
  101. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  102. {
  103. return 1;
  104. }
  105.  
  106. public OnPlayerExitVehicle(playerid, vehicleid)
  107. {
  108. return 1;
  109. }
  110.  
  111. public OnPlayerStateChange(playerid, newstate, oldstate)
  112. {
  113. return 1;
  114. }
  115.  
  116. public OnPlayerEnterCheckpoint(playerid)
  117. {
  118. return 1;
  119. }
  120.  
  121. public OnPlayerLeaveCheckpoint(playerid)
  122. {
  123. return 1;
  124. }
  125.  
  126. public OnPlayerEnterRaceCheckpoint(playerid)
  127. {
  128. return 1;
  129. }
  130.  
  131. public OnPlayerLeaveRaceCheckpoint(playerid)
  132. {
  133. return 1;
  134. }
  135.  
  136. public OnRconCommand(cmd[])
  137. {
  138. return 1;
  139. }
  140.  
  141. public OnPlayerRequestSpawn(playerid)
  142. {
  143. return 1;
  144. }
  145.  
  146. public OnObjectMoved(objectid)
  147. {
  148. return 1;
  149. }
  150.  
  151. public OnPlayerObjectMoved(playerid, objectid)
  152. {
  153. return 1;
  154. }
  155.  
  156. public OnPlayerPickUpPickup(playerid, pickupid)
  157. {
  158. if(pickupid == mypickup)
  159. {
  160. new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
  161. GetPlayerName(playerid, pname, sizeof(pname));
  162. format(string, sizeof(string), "%s robbed the casino!", pname);
  163. GameTextForAll(string, 5000, 3);
  164. SetPlayerPos(playerid, 2144.0903,1638.6241,993.5761);
  165. GivePlayerMoney(playerid, 20000);
  166. TogglePlayerControllable(playerid, false); // Freeze the player
  167. SetTimerEx("Unfreeze", 5000, false, "i", playerid); // Make a 5 second timer for that player to get unfrozen
  168. }
  169. return 1;
  170. }
  171.  
  172. public OnVehicleMod(playerid, vehicleid, componentid)
  173. {
  174. return 1;
  175. }
  176.  
  177. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  178. {
  179. return 1;
  180. }
  181.  
  182. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  183. {
  184. return 1;
  185. }
  186.  
  187. public OnPlayerSelectedMenuRow(playerid, row)
  188. {
  189. return 1;
  190. }
  191.  
  192. public OnPlayerExitedMenu(playerid)
  193. {
  194. return 1;
  195. }
  196.  
  197. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  198. {
  199. return 1;
  200. }
  201.  
  202. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  203. {
  204. return 1;
  205. }
  206.  
  207. public OnRconLoginAttempt(ip[], password[], success)
  208. {
  209. return 1;
  210. }
  211.  
  212. public OnPlayerUpdate(playerid)
  213. {
  214. return 1;
  215. }
  216.  
  217. public OnPlayerStreamIn(playerid, forplayerid)
  218. {
  219. return 1;
  220. }
  221.  
  222. public OnPlayerStreamOut(playerid, forplayerid)
  223. {
  224. return 1;
  225. }
  226.  
  227. public OnVehicleStreamIn(vehicleid, forplayerid)
  228. {
  229. return 1;
  230. }
  231.  
  232. public OnVehicleStreamOut(vehicleid, forplayerid)
  233. {
  234. return 1;
  235. }
  236.  
  237. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  238. {
  239. return 1;
  240. }
  241.  
  242. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  243. {
  244. return 1;
  245. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement