01.07.2013, 02:18
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_BCLIST)
{
if(response)
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid, 0x00FFFFFF, "Bait-Car 1 Initiated, find a spot to park it.");
DestroyVehicle(BC1);
DestroyVehicle(BC2);
DestroyVehicle(BC3);
DestroyVehicle(BC4);
DestroyVehicle(BC5);
DestroyVehicle(BC6);
new Float:x,Float:y,Float:z,Float:a;
GetPlayerFacingAngle(playerid,a);
GetPlayerPos(playerid,x,y,z);
BC1=CreateVehicle(579, x, y, z,a, -1, -1, -1);
PutPlayerInVehicle(playerid, BC1, 0);
return 1;
}
}
}
}
return 0; //<-----change this to return 1;
}