Код:
#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;
}
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
No, It's my fault, I accidently pressed the ENTER button so it posted.
Sorry.
Lol, I was released my car spawner dialog before your heli script was released and your heli script was like my car spawner.
any good fs that will delete spawned car when spawning new one, without timers
Yee nice and simple and also good..... It will help newbies....