frozzys

Untitled

May 14th, 2012
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 5.12 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.  
  7. #define MASINOS_PASIRINKIMAS 1 //tavo id
  8.  
  9. main()
  10. {
  11.     print("\n----------------------------------");
  12.     print(" Blank Gamemode by your name here");
  13.     print("----------------------------------\n");
  14. }
  15.  
  16. enum Info
  17. {
  18.  ZaidejoNuzudymai //tavo zodis kuri naudosim funkcijose
  19. }
  20. new pInfo[MAX_PLAYERS][Info];
  21.  
  22. public OnGameModeInit()
  23. {
  24.     // Don't use these lines if it's a filterscript
  25.     SetGameModeText("Blank Script");
  26.     AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  27.     return 1;
  28. }
  29.  
  30. public OnGameModeExit()
  31. {
  32.     return 1;
  33. }
  34.  
  35. public OnPlayerRequestClass(playerid, classid)
  36. {
  37.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  38.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  39.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  40.     return 1;
  41. }
  42.  
  43. public OnPlayerConnect(playerid)
  44. {
  45.     return 1;
  46. }
  47.  
  48. public OnPlayerDisconnect(playerid, reason)
  49. {
  50.     return 1;
  51. }
  52.  
  53. public OnPlayerSpawn(playerid)
  54. {
  55.     return 1;
  56. }
  57.  
  58. public OnPlayerDeath(playerid, killerid, reason)
  59. {
  60. pInfo[ killerid ][ ZaidejoNuzudymai ] ++; // Pinfo tai yra mūsų enumas, killedir tai yra to žmogaus kuris nužudė, ZaidejoNuzudymai yra ecnume ivestas ''zodis'' o ++ reikškia, jog duoda +1 nužudymą į statistiką pvž.
  61.     return 1;
  62. }
  63.  
  64. public OnVehicleSpawn(vehicleid)
  65. {
  66.     return 1;
  67. }
  68.  
  69. public OnVehicleDeath(vehicleid, killerid)
  70. {
  71.     return 1;
  72. }
  73.  
  74. public OnPlayerText(playerid, text[])
  75. {
  76.     return 1;
  77. }
  78.  
  79. CMD:masina( playerid, params[] )
  80. {
  81. ShowPlayerDialog(playerid, MASINOS_PASIRINKIMAS ,DIALOG_STYLE_LIST,"Mašinos pasirinkimas","Pirma mašina\nAntra mašina\nTrečia mašina","Gerai","Gerai");
  82. return 1;
  83. }
  84.  
  85.  
  86. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  87. {
  88.     return 1;
  89. }
  90.  
  91. public OnPlayerExitVehicle(playerid, vehicleid)
  92. {
  93.     return 1;
  94. }
  95.  
  96. public OnPlayerStateChange(playerid, newstate, oldstate)
  97. {
  98.     return 1;
  99. }
  100.  
  101. public OnPlayerEnterCheckpoint(playerid)
  102. {
  103.     return 1;
  104. }
  105.  
  106. public OnPlayerLeaveCheckpoint(playerid)
  107. {
  108.     return 1;
  109. }
  110.  
  111. public OnPlayerEnterRaceCheckpoint(playerid)
  112. {
  113.     return 1;
  114. }
  115.  
  116. public OnPlayerLeaveRaceCheckpoint(playerid)
  117. {
  118.     return 1;
  119. }
  120.  
  121. public OnRconCommand(cmd[])
  122. {
  123.     return 1;
  124. }
  125.  
  126. public OnPlayerRequestSpawn(playerid)
  127. {
  128.     return 1;
  129. }
  130.  
  131. public OnObjectMoved(objectid)
  132. {
  133.     return 1;
  134. }
  135.  
  136. public OnPlayerObjectMoved(playerid, objectid)
  137. {
  138.     return 1;
  139. }
  140.  
  141. public OnPlayerPickUpPickup(playerid, pickupid)
  142. {
  143.     return 1;
  144. }
  145.  
  146. public OnVehicleMod(playerid, vehicleid, componentid)
  147. {
  148.     return 1;
  149. }
  150.  
  151. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  152. {
  153.     return 1;
  154. }
  155.  
  156. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  157. {
  158.     return 1;
  159. }
  160.  
  161. public OnPlayerSelectedMenuRow(playerid, row)
  162. {
  163.     return 1;
  164. }
  165.  
  166. public OnPlayerExitedMenu(playerid)
  167. {
  168.     return 1;
  169. }
  170.  
  171. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  172. {
  173.     return 1;
  174. }
  175.  
  176. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  177. {
  178.     return 1;
  179. }
  180.  
  181. public OnRconLoginAttempt(ip[], password[], success)
  182. {
  183.     return 1;
  184. }
  185.  
  186. public OnPlayerUpdate(playerid)
  187. {
  188.     return 1;
  189. }
  190.  
  191. public OnPlayerStreamIn(playerid, forplayerid)
  192. {
  193.     return 1;
  194. }
  195.  
  196. public OnPlayerStreamOut(playerid, forplayerid)
  197. {
  198.     return 1;
  199. }
  200.  
  201. public OnVehicleStreamIn(vehicleid, forplayerid)
  202. {
  203.     return 1;
  204. }
  205.  
  206. public OnVehicleStreamOut(vehicleid, forplayerid)
  207. {
  208.     return 1;
  209. }
  210.  
  211. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  212. {
  213.  
  214. if(dialogid == ADMIN_MASINOS)
  215.         {
  216.                 if(response)
  217.                 {
  218.                         if(listitem == 0)
  219.                         {
  220.                     new Float:x, Float:y, Float:z, Float:a;
  221.             GetPlayerFacingAngle(playerid,a);
  222.             GetPlayerPos(playerid, x, y, z);
  223.             new car;
  224.             car=CreateVehicle(411,x,y,z+4,a,-1,-1,30000);
  225.             PutPlayerInVehicle(playerid,car,0);
  226.             SendClientMessage(playerid, 0x33AA33AA, "Pasirinkai Pirma mašiną");
  227.                         }
  228.                         if(listitem == 1)
  229.                         {
  230.                     new Float:x, Float:y, Float:z, Float:a;
  231.             GetPlayerFacingAngle(playerid,a);
  232.             GetPlayerPos(playerid, x, y, z);
  233.             new car;
  234.             car=CreateVehicle(560,x,y,z+4,a,-1,-1,30000);
  235.             PutPlayerInVehicle(playerid,car,0);
  236.             SendClientMessage(playerid, 0x33AA33AA, "Pasirinkai Antrą mašiną mašiną");
  237.                         }
  238.                         if(listitem == 2)
  239.                 {
  240.                 new Float:x, Float:y, Float:z, Float:a;
  241.             GetPlayerFacingAngle(playerid,a);
  242.             GetPlayerPos(playerid, x, y, z);
  243.             new car;
  244.             car=CreateVehicle(562,x,y,z+4,a,-1,-1,30000);
  245.             PutPlayerInVehicle(playerid,car,0);
  246.             SendClientMessage(playerid, 0x33AA33AA, "Pasirinkai Trečią mašiną");
  247.                         }
  248.                            }
  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