KiKPro

.: Pallone Volante Via Dialoghi :.

Oct 22nd, 2012
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 6.23 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 b1;
  7. new b2;
  8. new b3;
  9. #if defined FILTERSCRIPT
  10.  
  11. public OnFilterScriptInit()
  12. {
  13.     print("\n--------------------------------------");
  14.     print(" Crea Palloni Volanti By KiKPro...");
  15.     print("Attivato Con Successo!\n");
  16.         print("--------------------------------------\n");
  17.    
  18.     b1 = CreateObject(19332, 364.71, 2537.19, 15.68,   0.00, 0.00, 0.00);
  19.     b2 = CreateObject(19333, 154.77, -1858.23, 2.78,   0.00, 0.00, 0.00);
  20.     b3 = CreateObject(19334, -1748.00, -154.60, 2.60,   0.00, 0.00, 0.00);
  21.         return 1;
  22. }
  23.  
  24. public OnFilterScriptExit()
  25. {
  26.     return 1;
  27. }
  28.  
  29. #else
  30.  
  31. main()
  32. {
  33.     print("\n----------------------------------");
  34.     print(" Crea Palloni Volanti By KIKPro..");
  35.         print("Disattivato Con Successo!\n");
  36.     print("----------------------------------\n");
  37. }
  38.  
  39. #endif
  40.  
  41. public OnGameModeInit()
  42. {
  43.     // Don't use these lines if it's a filterscript
  44.     SetGameModeText("Blank Script");
  45.     AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  46.     return 1;
  47. }
  48.  
  49. public OnGameModeExit()
  50. {
  51.     return 1;
  52. }
  53.  
  54. public OnPlayerRequestClass(playerid, classid)
  55. {
  56.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  57.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  58.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  59.     return 1;
  60. }
  61.  
  62. public OnPlayerConnect(playerid)
  63. {
  64.     return 1;
  65. }
  66.  
  67. public OnPlayerDisconnect(playerid, reason)
  68. {
  69.     return 1;
  70. }
  71.  
  72. public OnPlayerSpawn(playerid)
  73. {
  74.     return 1;
  75. }
  76.  
  77. public OnPlayerDeath(playerid, killerid, reason)
  78. {
  79.     return 1;
  80. }
  81.  
  82. public OnVehicleSpawn(vehicleid)
  83. {
  84.     return 1;
  85. }
  86.  
  87. public OnVehicleDeath(vehicleid, killerid)
  88. {
  89.     return 1;
  90. }
  91.  
  92. public OnPlayerText(playerid, text[])
  93. {
  94.     return 1;
  95. }
  96.  
  97. public OnPlayerCommandText(playerid, cmdtext[])
  98. {
  99.      if (strcmp("/pallone", cmdtext, true, 10) == 0)
  100.         {
  101.                 ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Boston DM - Pallone Volante", "Rosso\nBlu\nGrigio", "Continua", "Annulla");
  102.                 return 1;
  103.     }
  104.     return 0;
  105. }
  106.  
  107. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  108. {
  109.     return 1;
  110. }
  111.  
  112. public OnPlayerExitVehicle(playerid, vehicleid)
  113. {
  114.     return 1;
  115. }
  116.  
  117. public OnPlayerStateChange(playerid, newstate, oldstate)
  118. {
  119.     return 1;
  120. }
  121.  
  122. public OnPlayerEnterCheckpoint(playerid)
  123. {
  124.     return 1;
  125. }
  126.  
  127. public OnPlayerLeaveCheckpoint(playerid)
  128. {
  129.     return 1;
  130. }
  131.  
  132. public OnPlayerEnterRaceCheckpoint(playerid)
  133. {
  134.     return 1;
  135. }
  136.  
  137. public OnPlayerLeaveRaceCheckpoint(playerid)
  138. {
  139.     return 1;
  140. }
  141.  
  142. public OnRconCommand(cmd[])
  143. {
  144.     return 1;
  145. }
  146.  
  147. public OnPlayerRequestSpawn(playerid)
  148. {
  149.     return 1;
  150. }
  151.  
  152. public OnObjectMoved(objectid)
  153. {
  154.     return 1;
  155. }
  156.  
  157. public OnPlayerObjectMoved(playerid, objectid)
  158. {
  159.     return 1;
  160. }
  161.  
  162. public OnPlayerPickUpPickup(playerid, pickupid)
  163. {
  164.     return 1;
  165. }
  166.  
  167. public OnVehicleMod(playerid, vehicleid, componentid)
  168. {
  169.     return 1;
  170. }
  171.  
  172. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  173. {
  174.     return 1;
  175. }
  176.  
  177. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  178. {
  179.     return 1;
  180. }
  181.  
  182. public OnPlayerSelectedMenuRow(playerid, row)
  183. {
  184.     return 1;
  185. }
  186.  
  187. public OnPlayerExitedMenu(playerid)
  188. {
  189.     return 1;
  190. }
  191.  
  192. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  193. {
  194.     return 1;
  195. }
  196.  
  197. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  198. {
  199.     return 1;
  200. }
  201.  
  202. public OnRconLoginAttempt(ip[], password[], success)
  203. {
  204.     return 1;
  205. }
  206.  
  207. public OnPlayerUpdate(playerid)
  208. {
  209.     return 1;
  210. }
  211.  
  212. public OnPlayerStreamIn(playerid, forplayerid)
  213. {
  214.     return 1;
  215. }
  216.  
  217. public OnPlayerStreamOut(playerid, forplayerid)
  218. {
  219.     return 1;
  220. }
  221.  
  222. public OnVehicleStreamIn(vehicleid, forplayerid)
  223. {
  224.     return 1;
  225. }
  226.  
  227. public OnVehicleStreamOut(vehicleid, forplayerid)
  228. {
  229.     return 1;
  230. }
  231.  
  232. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  233. {
  234. if(dialogid == 6 && response)//Palloni Disponibili
  235.         {
  236.             switch(listitem)
  237.             {
  238.                 case 0:
  239.                 {
  240.                  ShowPlayerDialog(playerid, 13, DIALOG_STYLE_LIST, "Boston DM - Pallone Rosso", "Gotati\nSali\nScendi", "Ok", "Annulla");
  241.                 }
  242.                 case 1:
  243.                 {
  244.                  ShowPlayerDialog(playerid, 14, DIALOG_STYLE_LIST, "Boston DM - Pallone Blu", "Gotati\nSali\nScendi", "Ok", "Annulla");
  245.                  }
  246.                 case 2:
  247.                 {
  248.                  ShowPlayerDialog(playerid, 15, DIALOG_STYLE_LIST, "Boston DM - Pallone Grigio", "Gotati\nSali\nScendi", "Ok", "Annulla");
  249.                  }
  250.             }
  251.         }
  252.         if(dialogid == 13 && response)//Rosso
  253.         {
  254.             switch(listitem)
  255.             {
  256.                 case 0:
  257.                 {
  258.                  SetPlayerPos(playerid,382.0658, 2537.5269, 15.6774);
  259.                 }
  260.                 case 1:
  261.                 {
  262.                  MoveObject(b1, 237.11, 2547.02, 354.68, 3);
  263.                  }
  264.                 case 2:
  265.                 {
  266.                  MoveObject(b1, 365.56, 2537.17, 15.68, 5);
  267.                  }
  268.             }
  269.         }
  270.         if(dialogid == 14 && response)//Blu
  271.         {
  272.             switch(listitem)
  273.             {
  274.                 case 0:
  275.                 {
  276.                  SetPlayerPos(playerid,153.8562, -1879.2620, 2.7823);
  277.                 }
  278.                 case 1:
  279.                 {
  280.                  MoveObject(b2, 455.3196, -1870.2194, 824.6305, 3);
  281.                  }
  282.                 case 2:
  283.                 {
  284.                  MoveObject(b2, 154.7741, -1858.2334, 2.7823 , 5);
  285.                  }
  286.             }
  287.         }
  288.         if(dialogid == 15 && response)//Grigio
  289.         {
  290.             switch(listitem)
  291.             {
  292.                 case 0:
  293.                 {
  294.                  SetPlayerPos(playerid,-1738.4253, -137.0162, 2.6011);
  295.                 }
  296.                 case 1:
  297.                 {
  298.                  MoveObject(b3,-1752.5271, -8.4947, 282.0090, 3);
  299.                  }
  300.                 case 2:
  301.                 {
  302.                  MoveObject(b3, -1748.0038, -154.6030, 2.6011, 5);
  303.                  }
  304.             }
  305.         }
  306.         return 1;
  307. }
  308.  
  309. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  310. {
  311.     return 1;
  312. }
Advertisement
Add Comment
Please, Sign In to add comment