legodude

legodude

Aug 5th, 2010
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 5.15 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define FILTERSCRIPT
  4.  
  5. public OnFilterScriptInit()
  6. {
  7.     print("\n--------------------------------------");
  8.     print(" Blank Filterscript by your name here");
  9.     print("--------------------------------------\n");
  10.     return 1;
  11. }
  12.  
  13. public OnFilterScriptExit()
  14. {
  15.     return 1;
  16. }
  17.  
  18.  
  19.  
  20. main()
  21. {
  22.     print("\n----------------------------------");
  23.     print(" Blank Gamemode by your name here");
  24.     print("----------------------------------\n");
  25. }
  26.  
  27.  
  28.  
  29. public OnGameModeInit()
  30. {
  31.     // Don't use these lines if it's a filterscript
  32.     SetGameModeText("Blank Script");
  33.     AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  34.     return 1;
  35. }
  36.  
  37. public OnGameModeExit()
  38. {
  39.     return 1;
  40. }
  41.  
  42. public OnPlayerRequestClass(playerid, classid)
  43. {
  44.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  45.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  46.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  47.     return 1;
  48. }
  49.  
  50. public OnPlayerConnect(playerid)
  51. {
  52.     return 1;
  53. }
  54.  
  55. public OnPlayerDisconnect(playerid, reason)
  56. {
  57.     return 1;
  58. }
  59.  
  60. public OnPlayerSpawn(playerid)
  61. {
  62.     return 1;
  63. }
  64.  
  65. public OnPlayerDeath(playerid, killerid, reason)
  66. {
  67.     return 1;
  68. }
  69.  
  70. public OnVehicleSpawn(vehicleid)
  71. {
  72.     return 1;
  73. }
  74.  
  75. public OnVehicleDeath(vehicleid, killerid)
  76. {
  77.     return 1;
  78. }
  79.  
  80. public OnPlayerText(playerid, text[])
  81. {
  82.     return 1;
  83. }
  84.  
  85. public OnPlayerCommandText(playerid, cmdtext[])
  86. {
  87.     if (strcmp("/weapons", cmdtext, true, 10) == 0)
  88.     {
  89.         ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Weapons", "BaseBallBat /n 9mm /n shotgun /n mp5 /n ak47 /n sniperrifle /n rpg /n grenades ", "Select", "Cancel");
  90.         return 1;
  91.     }
  92.     return 0;
  93. }
  94.  
  95. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  96. {
  97.     return 1;
  98. }
  99.  
  100. public OnPlayerExitVehicle(playerid, vehicleid)
  101. {
  102.     return 1;
  103. }
  104.  
  105. public OnPlayerStateChange(playerid, newstate, oldstate)
  106. {
  107.     return 1;
  108. }
  109.  
  110. public OnPlayerEnterCheckpoint(playerid)
  111. {
  112.     return 1;
  113. }
  114.  
  115. public OnPlayerLeaveCheckpoint(playerid)
  116. {
  117.     return 1;
  118. }
  119.  
  120. public OnPlayerEnterRaceCheckpoint(playerid)
  121. {
  122.     return 1;
  123. }
  124.  
  125. public OnPlayerLeaveRaceCheckpoint(playerid)
  126. {
  127.     return 1;
  128. }
  129.  
  130. public OnRconCommand(cmd[])
  131. {
  132.     return 1;
  133. }
  134.  
  135. public OnPlayerRequestSpawn(playerid)
  136. {
  137.     return 1;
  138. }
  139.  
  140. public OnObjectMoved(objectid)
  141. {
  142.     return 1;
  143. }
  144.  
  145. public OnPlayerObjectMoved(playerid, objectid)
  146. {
  147.     return 1;
  148. }
  149.  
  150. public OnPlayerPickUpPickup(playerid, pickupid)
  151. {
  152.     return 1;
  153. }
  154.  
  155. public OnVehicleMod(playerid, vehicleid, componentid)
  156. {
  157.     return 1;
  158. }
  159.  
  160. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  161. {
  162.     return 1;
  163. }
  164.  
  165. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  166. {
  167.     return 1;
  168. }
  169.  
  170. public OnPlayerSelectedMenuRow(playerid, row)
  171. {
  172.     return 1;
  173. }
  174.  
  175. public OnPlayerExitedMenu(playerid)
  176. {
  177.     return 1;
  178. }
  179.  
  180. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  181. {
  182.     return 1;
  183. }
  184.  
  185. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  186. {
  187.     return 1;
  188. }
  189.  
  190. public OnRconLoginAttempt(ip[], password[], success)
  191. {
  192.     return 1;
  193. }
  194.  
  195. public OnPlayerUpdate(playerid)
  196. {
  197.     return 1;
  198. }
  199.  
  200. public OnPlayerStreamIn(playerid, forplayerid)
  201. {
  202.     return 1;
  203. }
  204.  
  205. public OnPlayerStreamOut(playerid, forplayerid)
  206. {
  207.     return 1;
  208. }
  209.  
  210. public OnVehicleStreamIn(vehicleid, forplayerid)
  211. {
  212.     return 1;
  213. }
  214.  
  215. public OnVehicleStreamOut(vehicleid, forplayerid)
  216. {
  217.     return 1;
  218. }
  219.  
  220. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  221. {
  222.     {
  223.   if(dialogid == 2)
  224.     {
  225.         if(response)
  226.         {
  227.             new message[256+1];
  228.             if(listitem == 0)
  229.             {
  230.             format(message, 256, "You now have a baseballbat", listitem);
  231.             SendClientMessage(playerid, 0xFFFFFFFF, message);
  232.             GivePlayerWeapon(playerid,5,9999);
  233.             }
  234.             if(listitem == 1)
  235.             {
  236.               format(message, 256, "Youve been given a regular pistol!", listitem);
  237.               SendClientMessage(playerid, 0xFFFFFFFF, message);
  238.               GivePlayerWeapon(playerid,22,9999);
  239.  
  240.             }
  241.             if(listitem == 2)
  242.             {
  243.               format(message, 256, "You have a sawn of shotgun!", listitem);
  244.               SendClientMessage(playerid, 0xFFFFFFFF, message);
  245.               GivePlayerWeapon(playerid,26,9999);
  246.  
  247.             }
  248.             if(listitem == 3)
  249.             {
  250.               format(message, 256, "You got a MP5!", listitem);
  251.               SendClientMessage(playerid, 0xFFFFFFFF, message);
  252.               GivePlayerWeapon(playerid,29,9999);
  253.  
  254.             }
  255.             if(listitem == 4)
  256.             {
  257.               format(message, 256, "You chose an ak47!", listitem);
  258.               SendClientMessage(playerid, 0xFFFFFFFF, message);
  259.               GivePlayerWeapon(playerid,30,9999);
  260.  
  261.             }
  262.             if(listitem == 5)
  263.             {
  264.               format(message, 256, "You have a Sniper Rifle [very acurate]!", listitem);
  265.               SendClientMessage(playerid, 0xFFFFFFFF, message);
  266.               GivePlayerWeapon(playerid,34,9999);
  267.  
  268.             }
  269.             if(listitem == 6)
  270.             {
  271.               format(message, 256, "you have a Rocket Launcher !!", listitem);
  272.               SendClientMessage(playerid, 0xFFFFFFFF, message);
  273.               GivePlayerWeapon(playerid,35,9999);
  274.  
  275.             }
  276.             if(listitem == 7)
  277.             {
  278.               format(message, 256, "You have some grenades!", listitem);
  279.               SendClientMessage(playerid, 0xFFFFFFFF, message);
  280.               GivePlayerWeapon(playerid,16,9999);
  281.  
  282.             }
  283.         }
  284.     }//only thing i added
  285.     }//together with this one
  286.     return 1;
  287. }
Add Comment
Please, Sign In to add comment