//I couldn't make this work in a FS, so you'll have to add it to your gamemode.
//Put these after #includes
new BC1;
new BC2;
new BC3;
new BC4;
new BC5;
new BC6;
//This goes under OnPlayerCommandText(...)
if(IsPlayerAdmin(playerid))
{
if (strcmp("/BC", cmdtext, true)==0)
{
DestroyVehicle(BC1);
DestroyVehicle(BC2);
DestroyVehicle(BC3);
DestroyVehicle(BC4);
DestroyVehicle(BC5);
DestroyVehicle(BC6);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Available Bait-Cars", "Huntley\nTurismo\nSultan\nBuffalo\nPatriot\nJetmax (boat)", "Select", "Cancel");
return 1;
}
if (strcmp("/DIS", cmdtext, true)==0)
{
SendClientMessage(playerid, 0xFFFF00FF , "Bait-Car Disabled.");
SetVehicleParamsEx(BC1, 0, 1, 0, 1, 0, 0, 0);
SetVehicleParamsEx(BC2, 0, 1, 0, 1, 0, 0, 0);
SetVehicleParamsEx(BC3, 0, 1, 0, 1, 0, 0, 0);
SetVehicleParamsEx(BC4, 0, 1, 0, 1, 0, 0, 0);
SetVehicleParamsEx(BC5, 0, 1, 0, 1, 0, 0, 0);
SetVehicleParamsEx(BC6, 0, 1, 0, 1, 0, 0, 0);
return 1;
}
}
//And the rest is our dialog request
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new Float:x,Float:y,Float:z,Float:a;
if(dialogid==1 &&response==1)
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid, 0xFFFF00FF , "Bait-Car 1 Initiated, find a spot to park it.");
SendClientMessage(playerid, 0xFFFF00FF , "Type /DIS to disable the Bait-Car's engine after a theif takes it.");
GetPlayerFacingAngle(playerid,a);
GetPlayerPos(playerid,x,y,z);
BC1=CreateVehicle(579, x, y, z,a, -1, -1, -1);
PutPlayerInVehicle(playerid, BC1, 0);
}
case 1:
{
SendClientMessage(playerid, 0xFFFF00FF , "Bait-Car 2 Initiated, find a spot to park it.");
SendClientMessage(playerid, 0xFFFF00FF , "Type /DIS to disable the Bait-Car's engine after a theif takes it.");
GetPlayerFacingAngle(playerid,a);
GetPlayerPos(playerid,x,y,z);
BC2=CreateVehicle(451, x, y, z,a, -1, -1, -1);
PutPlayerInVehicle(playerid, BC2, 0);
}
case 2:
{
SendClientMessage(playerid, 0xFFFF00FF , "Bait-Car 3 Initiated, find a spot to park it.");
SendClientMessage(playerid, 0xFFFF00FF , "Type /DIS to disable the Bait-Car's engine after a theif takes it.");
GetPlayerFacingAngle(playerid,a);
GetPlayerPos(playerid,x,y,z);
BC3=CreateVehicle(560, x, y, z,a, -1, -1, -1);
PutPlayerInVehicle(playerid, BC3, 0);
}
case 3:
{
SendClientMessage(playerid, 0xFFFF00FF , "Bait-Car 4 Initiated, find a spot to park it.");
SendClientMessage(playerid, 0xFFFF00FF , "Type /DIS to disable the Bait-Car's engine after a theif takes it.");
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,a);
BC4=CreateVehicle(402, x, y, z,a, -1, -1, -1);
PutPlayerInVehicle(playerid, BC4, 0);
}
case 4:
{
SendClientMessage(playerid, 0xFFFF00FF , "Bait-Car 5 Initiated, find a spot to park it.");
SendClientMessage(playerid, 0xFFFF00FF , "Type /DIS to disable the Bait-Car's engine after a theif takes it.");
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,a);
BC5=CreateVehicle(470, x, y, z,a, -1, -1, -1);
PutPlayerInVehicle(playerid, BC5, 0);
}
case 5:
{
SendClientMessage(playerid, 0xFFFF00FF , "Bait-Car 6 Initiated, find a spot to park it.");
SendClientMessage(playerid, 0xFFFF00FF , "Type /DIS to disable the Bait-Car's engine after a theif takes it.");
GetPlayerPos(playerid,x,y,z);
GetPlayerFacingAngle(playerid,a);
BC6=CreateVehicle(493, x, y, z,a, -1, -1, -1);
PutPlayerInVehicle(playerid, BC6, 0);
}
}
return 1;
}
return 0;
}
I dont understand, too
![]() Watched video twice and i guess its some ENGINEON/OFF |