SA-MP Forums Archive
[FilterScript] Motorbike Spawner - Dialog - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Motorbike Spawner - Dialog (/showthread.php?tid=178280)



Motorbike Spawner - Dialog - Basicz - 21.09.2010

Motorbike Spawner by Basicz

Код:
#include <a_samp>
#define Motorbikes 5509

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Motorbike spawner by Basicz - Loaded -");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	print("\n----------------------------------");
	print(" Motorbike spawner by Basicz - Unloaded ");
	print("----------------------------------\n");
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	if (!strcmp(cmdtext, "/Motorbikes", true))
	{
		ShowPlayerDialog(playerid, Motorbikes, DIALOG_STYLE_LIST, "Motorbike spawner", "NRG-500\nFCR-900\nPCJ-600\nBF-400\nFreeway\nWayfarer\nSanchez\nHPV-1000\nFaggio\nPizzaboy\nQuadbike", "Spawn", "Cancel");
		return 1;
	}
	return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == Motorbikes)
	{
	    switch(listitem)
	    {
	        case 0: //NRG-500
	            {
	                new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
	                Int = GetPlayerInterior(playerid);
	                GetPlayerPos(playerid, X, Y, Z);
	                GetPlayerFacingAngle(playerid, Ang);
					pVeh = CreateVehicle(522, X, Y, Z, Ang, 0, 0, -1);
					LinkVehicleToInterior(pVeh, Int);
					PutPlayerInVehicle(playerid, pVeh, 0);
				}
			case 1: //FCR-900
			    {
       				new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
	                Int = GetPlayerInterior(playerid);
	                GetPlayerPos(playerid, X, Y, Z);
	                GetPlayerFacingAngle(playerid, Ang);
					pVeh = CreateVehicle(521, X, Y, Z, Ang, 0, 0, -1);
					LinkVehicleToInterior(pVeh, Int);
					PutPlayerInVehicle(playerid, pVeh, 0);
				}
			case 2: //PCJ-600
			    {
       				new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
	                Int = GetPlayerInterior(playerid);
	                GetPlayerPos(playerid, X, Y, Z);
	                GetPlayerFacingAngle(playerid, Ang);
					pVeh = CreateVehicle(461, X, Y, Z, Ang, 0, 0, -1);
					LinkVehicleToInterior(pVeh, Int);
					PutPlayerInVehicle(playerid, pVeh, 0);
				}
			case 3: //BF-400
			    {
       				new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
	                Int = GetPlayerInterior(playerid);
	                GetPlayerPos(playerid, X, Y, Z);
	                GetPlayerFacingAngle(playerid, Ang);
					pVeh = CreateVehicle(581, X, Y, Z, Ang, 0, 0, -1);
					LinkVehicleToInterior(pVeh, Int);
					PutPlayerInVehicle(playerid, pVeh, 0);
				}
			case 4: //Freeway
				{
					new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
	                Int = GetPlayerInterior(playerid);
	                GetPlayerPos(playerid, X, Y, Z);
	                GetPlayerFacingAngle(playerid, Ang);
					pVeh = CreateVehicle(463, X, Y, Z, Ang, 0, 0, -1);
					LinkVehicleToInterior(pVeh, Int);
					PutPlayerInVehicle(playerid, pVeh, 0);
				}
			case 5: //Wayfarer
			    {
       				new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
	                Int = GetPlayerInterior(playerid);
	                GetPlayerPos(playerid, X, Y, Z);
	                GetPlayerFacingAngle(playerid, Ang);
					pVeh = CreateVehicle(586, X, Y, Z, Ang, 0, 0, -1);
					LinkVehicleToInterior(pVeh, Int);
					PutPlayerInVehicle(playerid, pVeh, 0);
				}
			case 6: //Sanchez
			    {
       				new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
	                Int = GetPlayerInterior(playerid);
	                GetPlayerPos(playerid, X, Y, Z);
	                GetPlayerFacingAngle(playerid, Ang);
					pVeh = CreateVehicle(468, X, Y, Z, Ang, 0, 0, -1);
					LinkVehicleToInterior(pVeh, Int);
					PutPlayerInVehicle(playerid, pVeh, 0);
				}
			case 7: //HPV-1000
			    {
       				new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
	                Int = GetPlayerInterior(playerid);
	                GetPlayerPos(playerid, X, Y, Z);
	                GetPlayerFacingAngle(playerid, Ang);
					pVeh = CreateVehicle(523, X, Y, Z, Ang, 0, 0, -1);
					LinkVehicleToInterior(pVeh, Int);
					PutPlayerInVehicle(playerid, pVeh, 0);
				}
			case 8: //Faggio
			    {
   					new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
	                Int = GetPlayerInterior(playerid);
	                GetPlayerPos(playerid, X, Y, Z);
	                GetPlayerFacingAngle(playerid, Ang);
					pVeh = CreateVehicle(462, X, Y, Z, Ang, 0, 0, -1);
					LinkVehicleToInterior(pVeh, Int);
					PutPlayerInVehicle(playerid, pVeh, 0);
				}
			case 9: //Pizzaboy
			    {
       				new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
	                Int = GetPlayerInterior(playerid);
	                GetPlayerPos(playerid, X, Y, Z);
	                GetPlayerFacingAngle(playerid, Ang);
					pVeh = CreateVehicle(448, X, Y, Z, Ang, 0, 0, -1);
					LinkVehicleToInterior(pVeh, Int);
					PutPlayerInVehicle(playerid, pVeh, 0);
				}
			case 10: //Quadbike
				{
    				new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
	                Int = GetPlayerInterior(playerid);
	                GetPlayerPos(playerid, X, Y, Z);
	                GetPlayerFacingAngle(playerid, Ang);
					pVeh = CreateVehicle(471, X, Y, Z, Ang, 0, 0, -1);
					LinkVehicleToInterior(pVeh, Int);
					PutPlayerInVehicle(playerid, pVeh, 0);
				}
			}
	}
	return 1;
}
Commands
/Motorbikes
--------------------


Re: Motorbike Spawner - Dialog - Robert_Crawford - 21.09.2010

Info? Download Link?

[Sorry Info Didn't load]


Re: Motorbike Spawner - Dialog - Shockey - 21.09.2010

Oh bugga I was about to release like exactly the same thing lol you copied my heli one but changed it to motorbikes, I'm releasing the sane thing


Re: Motorbike Spawner - Dialog - Basicz - 21.09.2010

No, It's my fault, I accidently pressed the ENTER button so it posted.
Sorry.

@Shockey
Lol, I was released my car spawner dialog before your heli script was released and your heli script was like my car spawner.


Re: Motorbike Spawner - Dialog - Elmin - 12.10.2010

simple but good

will this flood cars

any good fs that will delete spawned car when spawning new one, without timers


Re: Motorbike Spawner - Dialog - CyNiC - 12.10.2010

Simple but very useful.


Re: Motorbike Spawner - Dialog - Dime - 12.10.2010

Good for beginer.


Re: Motorbike Spawner - Dialog - Luis- - 12.10.2010

Too Simple, But yet useful!


Re: Motorbike Spawner - Dialog - HyperZ - 13.10.2010

Simple but nice work, btw


Re: Motorbike Spawner - Dialog - iRana - 13.10.2010

Quote:
Originally Posted by mr.sunny
Посмотреть сообщение
Simple but nice work, btw
Yee nice and simple and also good..... It will help newbies....