Advertisement
Valo

Untitled

Jul 8th, 2011
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.01 KB | None | 0 0
  1. #include <a_samp>
  2. new valo,
  3. vehPassword[ 857 ]="Get the fuck out"
  4.  
  5. #if defined FILTERSCRIPT
  6.  
  7. public OnFilterScriptInit()
  8. {
  9. print("\n--------------------------------------");
  10. print(" Blank Filterscript by your name here");
  11. print("--------------------------------------\n");
  12. return 1;
  13. }
  14.  
  15. public OnFilterScriptExit()
  16. {
  17. return 1;
  18. }
  19.  
  20. #else
  21.  
  22. main()
  23. {
  24. print("\n----------------------------------");
  25. print(" Blank Gamemode by your name here");
  26. print("----------------------------------\n");
  27. }
  28. #endif
  29.  
  30. public OnGameModeInit()
  31. {
  32. valo = AddStaticVehicle(447,2492.49267578,-1666.58959961,13.44375038,88.00000000,-1,-1);
  33. return 1;
  34. }
  35.  
  36. public OnGameModeExit()
  37. {
  38. return 1;
  39. }
  40.  
  41. public OnPlayerRequestClass(playerid, classid)
  42. {
  43. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  44. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  45. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  46. return 1;
  47. }
  48.  
  49. public OnPlayerConnect(playerid)
  50. {
  51. return 1;
  52. }
  53.  
  54. public OnPlayerDisconnect(playerid, reason)
  55. {
  56. return 1;
  57. }
  58.  
  59. public OnPlayerSpawn(playerid)
  60. {
  61. return 1;
  62. }
  63.  
  64. public OnPlayerDeath(playerid, killerid, reason)
  65. {
  66. return 1;
  67. }
  68.  
  69. public OnVehicleSpawn(vehicleid)
  70. {
  71. return 1;
  72. }
  73.  
  74. public OnVehicleDeath(vehicleid, killerid)
  75. {
  76. return 1;
  77. }
  78.  
  79. public OnPlayerText(playerid, text[])
  80. {
  81. return 1;
  82. }
  83.  
  84. public OnPlayerCommandText(playerid, cmdtext[])
  85. {
  86. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  87. {
  88. // Do something here
  89. return 1;
  90. }
  91. return 0;
  92. }
  93.  
  94. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  95. {
  96. if ( vehicleid == valo )
  97. {
  98. ShowPlayerDialog( playerid, 777, DIALOG_STYLE_INPUT, "Error", "This vehicle is passworded, enter the password!", "Use Vehicle", "Exit" );
  99. TogglePlayerControllable( playerid, false );
  100. }
  101. return 1;
  102. }
  103.  
  104. public OnPlayerExitVehicle(playerid, vehicleid)
  105. {
  106. return 1;
  107. }
  108.  
  109. public OnPlayerStateChange(playerid, newstate, oldstate)
  110. {
  111. return 1;
  112. }
  113.  
  114. public OnPlayerEnterCheckpoint(playerid)
  115. {
  116. return 1;
  117. }
  118.  
  119. public OnPlayerLeaveCheckpoint(playerid)
  120. {
  121. return 1;
  122. }
  123.  
  124. public OnPlayerEnterRaceCheckpoint(playerid)
  125. {
  126. return 1;
  127. }
  128.  
  129. public OnPlayerLeaveRaceCheckpoint(playerid)
  130. {
  131. return 1;
  132. }
  133.  
  134. public OnRconCommand(cmd[])
  135. {
  136. return 1;
  137. }
  138.  
  139. public OnPlayerRequestSpawn(playerid)
  140. {
  141. return 1;
  142. }
  143.  
  144. public OnObjectMoved(objectid)
  145. {
  146. return 1;
  147. }
  148.  
  149. public OnPlayerObjectMoved(playerid, objectid)
  150. {
  151. return 1;
  152. }
  153.  
  154. public OnPlayerPickUpPickup(playerid, pickupid)
  155. {
  156. return 1;
  157. }
  158.  
  159. public OnVehicleMod(playerid, vehicleid, componentid)
  160. {
  161. return 1;
  162. }
  163.  
  164. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  165. {
  166. return 1;
  167. }
  168.  
  169. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  170. {
  171. return 1;
  172. }
  173.  
  174. public OnPlayerSelectedMenuRow(playerid, row)
  175. {
  176. return 1;
  177. }
  178.  
  179. public OnPlayerExitedMenu(playerid)
  180. {
  181. return 1;
  182. }
  183.  
  184. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  185. {
  186. return 1;
  187. }
  188.  
  189. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  190. {
  191. return 1;
  192. }
  193.  
  194. public OnRconLoginAttempt(ip[], password[], success)
  195. {
  196. return 1;
  197. }
  198.  
  199. public OnPlayerUpdate(playerid)
  200. {
  201. return 1;
  202. }
  203.  
  204. public OnPlayerStreamIn(playerid, forplayerid)
  205. {
  206. return 1;
  207. }
  208.  
  209. public OnPlayerStreamOut(playerid, forplayerid)
  210. {
  211. return 1;
  212. }
  213.  
  214. public OnVehicleStreamIn(vehicleid, forplayerid)
  215. {
  216. return 1;
  217. }
  218.  
  219. public OnVehicleStreamOut(vehicleid, forplayerid)
  220. {
  221. return 1;
  222. }
  223.  
  224. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  225. {
  226. if ( dialogid == 777 )
  227. {
  228. if ( !strcmp( "Enjoy",vehPassword,false) ) {
  229. TogglePlayerControllable( playerid, true );
  230. // success! u have entered the correct password
  231. }
  232. else {
  233. RemovePlayerFromVehicle( playerid );
  234. TogglePlayerControllable( playerid, true );
  235. // ERROR: u've entered a wrong password, kthxbai.
  236. }
  237. }
  238. return 1;
  239. }
  240.  
  241. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  242. {
  243. return 1;
  244. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement