Advertisement
Guest User

Oxside

a guest
Dec 14th, 2009
926
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.24 KB | None | 0 0
  1. #include <a_samp>
  2. #include <dudb>
  3. #include <Dini>
  4. #include <dutils>
  5.  
  6. new License[MAX_PLAYERS];
  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. // Don't use these lines if it's a filterscript
  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.  
  56.  
  57. public OnPlayerConnect(playerid)
  58. {
  59. new formatZ[256];
  60. new pName[MAX_PLAYER_NAME];
  61. new string[48];
  62. format(formatZ,sizeof(formatZ),"%s.txt",PlayerName(playerid));
  63. if(!udb_Exists(formatZ))
  64. {
  65. udb_Create(formatZ,"209010");
  66. }
  67. License[playerid] = dUserINT(formatZ).("License");
  68. return 1;
  69. }
  70.  
  71. public OnPlayerDisconnect(playerid, reason)
  72. {
  73. new formatZ2[256];
  74. new pName[MAX_PLAYER_NAME];
  75. new string[56];
  76. format(formatZ2,sizeof(formatZ2),"%s.txt",PlayerName(playerid));
  77. dUserSetINT(formatZ2).("License",License[playerid]);
  78. return 1;
  79. }
  80.  
  81. public OnPlayerSpawn(playerid)
  82. {
  83. return 1;
  84. }
  85.  
  86. public OnPlayerDeath(playerid, killerid, reason)
  87. {
  88. return 1;
  89. }
  90.  
  91. public OnVehicleSpawn(vehicleid)
  92. {
  93. return 1;
  94. }
  95.  
  96. public OnVehicleDeath(vehicleid, killerid)
  97. {
  98. return 1;
  99. }
  100.  
  101. public OnPlayerText(playerid, text[])
  102. {
  103. return 1;
  104. }
  105.  
  106. public OnPlayerCommandText(playerid, cmdtext[])
  107. {
  108. if (strcmp("/buylicense", cmdtext, true, 10) == 0)
  109. {
  110. SendClientMessage(playerid, COLOR_GREEN, "* You have bought your driving license");
  111. License[playerid] = 1;
  112. GivePlayerMoney(playerid, - 500)
  113. return 1;
  114. }
  115. return 0;
  116. }
  117.  
  118. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  119. {
  120. if(License[playerid] == 0)
  121. {
  122. RemovePlayerFromVehicle(playerid)
  123. SendClientMessage(playerid, COLOR_RED, "* You dont have a license, you are not able to drive a vehicle");
  124. }
  125. return 1;
  126. }
  127.  
  128. public OnPlayerExitVehicle(playerid, vehicleid)
  129. {
  130. return 1;
  131. }
  132.  
  133. public OnPlayerStateChange(playerid, newstate, oldstate)
  134. {
  135. return 1;
  136. }
  137.  
  138. public OnPlayerEnterCheckpoint(playerid)
  139. {
  140. return 1;
  141. }
  142.  
  143. public OnPlayerLeaveCheckpoint(playerid)
  144. {
  145. return 1;
  146. }
  147.  
  148. public OnPlayerEnterRaceCheckpoint(playerid)
  149. {
  150. return 1;
  151. }
  152.  
  153. public OnPlayerLeaveRaceCheckpoint(playerid)
  154. {
  155. return 1;
  156. }
  157.  
  158. public OnRconCommand(cmd[])
  159. {
  160. return 1;
  161. }
  162.  
  163. public OnPlayerRequestSpawn(playerid)
  164. {
  165. return 1;
  166. }
  167.  
  168. public OnObjectMoved(objectid)
  169. {
  170. return 1;
  171. }
  172.  
  173. public OnPlayerObjectMoved(playerid, objectid)
  174. {
  175. return 1;
  176. }
  177.  
  178. public OnPlayerPickUpPickup(playerid, pickupid)
  179. {
  180. return 1;
  181. }
  182.  
  183. public OnVehicleMod(playerid, vehicleid, componentid)
  184. {
  185. return 1;
  186. }
  187.  
  188. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  189. {
  190. return 1;
  191. }
  192.  
  193. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  194. {
  195. return 1;
  196. }
  197.  
  198. public OnPlayerSelectedMenuRow(playerid, row)
  199. {
  200. return 1;
  201. }
  202.  
  203. public OnPlayerExitedMenu(playerid)
  204. {
  205. return 1;
  206. }
  207.  
  208. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  209. {
  210. return 1;
  211. }
  212.  
  213. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  214. {
  215. return 1;
  216. }
  217.  
  218. public OnRconLoginAttempt(ip[], password[], success)
  219. {
  220. return 1;
  221. }
  222.  
  223. public OnPlayerUpdate(playerid)
  224. {
  225. return 1;
  226. }
  227.  
  228. public OnPlayerStreamIn(playerid, forplayerid)
  229. {
  230. return 1;
  231. }
  232.  
  233. public OnPlayerStreamOut(playerid, forplayerid)
  234. {
  235. return 1;
  236. }
  237.  
  238. public OnVehicleStreamIn(vehicleid, forplayerid)
  239. {
  240. return 1;
  241. }
  242.  
  243. public OnVehicleStreamOut(vehicleid, forplayerid)
  244. {
  245. return 1;
  246. }
  247.  
  248. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  249. {
  250. return 1;
  251. }
  252.  
  253. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  254. {
  255. return 1;
  256. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement