Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- //#define FILTERSCRIPT
- #include <a_samp>
- new b1;
- new b2;
- new b3;
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Crea Palloni Volanti By KiKPro...");
- print("Attivato Con Successo!\n");
- print("--------------------------------------\n");
- b1 = CreateObject(19332, 364.71, 2537.19, 15.68, 0.00, 0.00, 0.00);
- b2 = CreateObject(19333, 154.77, -1858.23, 2.78, 0.00, 0.00, 0.00);
- b3 = CreateObject(19334, -1748.00, -154.60, 2.60, 0.00, 0.00, 0.00);
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Crea Palloni Volanti By KIKPro..");
- print("Disattivato Con Successo!\n");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- // Don't use these lines if it's a filterscript
- SetGameModeText("Blank Script");
- AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/pallone", cmdtext, true, 10) == 0)
- {
- ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Boston DM - Pallone Volante", "Rosso\nBlu\nGrigio", "Continua", "Annulla");
- return 1;
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 6 && response)//Palloni Disponibili
- {
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid, 13, DIALOG_STYLE_LIST, "Boston DM - Pallone Rosso", "Gotati\nSali\nScendi", "Ok", "Annulla");
- }
- case 1:
- {
- ShowPlayerDialog(playerid, 14, DIALOG_STYLE_LIST, "Boston DM - Pallone Blu", "Gotati\nSali\nScendi", "Ok", "Annulla");
- }
- case 2:
- {
- ShowPlayerDialog(playerid, 15, DIALOG_STYLE_LIST, "Boston DM - Pallone Grigio", "Gotati\nSali\nScendi", "Ok", "Annulla");
- }
- }
- }
- if(dialogid == 13 && response)//Rosso
- {
- switch(listitem)
- {
- case 0:
- {
- SetPlayerPos(playerid,382.0658, 2537.5269, 15.6774);
- }
- case 1:
- {
- MoveObject(b1, 237.11, 2547.02, 354.68, 3);
- }
- case 2:
- {
- MoveObject(b1, 365.56, 2537.17, 15.68, 5);
- }
- }
- }
- if(dialogid == 14 && response)//Blu
- {
- switch(listitem)
- {
- case 0:
- {
- SetPlayerPos(playerid,153.8562, -1879.2620, 2.7823);
- }
- case 1:
- {
- MoveObject(b2, 455.3196, -1870.2194, 824.6305, 3);
- }
- case 2:
- {
- MoveObject(b2, 154.7741, -1858.2334, 2.7823 , 5);
- }
- }
- }
- if(dialogid == 15 && response)//Grigio
- {
- switch(listitem)
- {
- case 0:
- {
- SetPlayerPos(playerid,-1738.4253, -137.0162, 2.6011);
- }
- case 1:
- {
- MoveObject(b3,-1752.5271, -8.4947, 282.0090, 3);
- }
- case 2:
- {
- MoveObject(b3, -1748.0038, -154.6030, 2.6011, 5);
- }
- }
- }
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment