Guten Abend,
Und zwar bekomme ich das nicht hin, wenn ich im Dialog das auto ausgesucht habe soll ein nächstes Dialog kommen wo ich das neon auswählen kann.
Und dann soll das Fahrzeug spawnen mit Neon dran.
Code:
case DIALOG_GUTSCHEIN_UBB:
{
if(response)
{
if(listitem==0)
{
CreatePlayerVehicle(playerid, 560, -1706.9330,11.5702,3.2606,316.5364,GetName(playerid),0,0,0,0);
SetVehicleParamsEx(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, alarm, doors, bonnet, boot, objective);
return 1;
}
if(listitem==1)
{
CreatePlayerVehicle(playerid, 559, -1706.9330,11.5702,3.2606,316.5364,GetName(playerid),0,0,0,0);
SetVehicleParamsEx(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, alarm, doors, bonnet, boot, objective);
return 1;
}
if(listitem==2)
{
CreatePlayerVehicle(playerid, 411, -1706.9330,11.5702,3.2606,316.5364,GetName(playerid),0,0,0,0);
SetVehicleParamsEx(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, alarm, doors, bonnet, boot, objective);
return 1;
}
if(listitem==3)
{
CreatePlayerVehicle(playerid, 451, -1706.9330,11.5702,3.2606,316.5364,GetName(playerid),0,0,0,0);
SetVehicleParamsEx(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, alarm, doors, bonnet, boot, objective);
return 1;
}
if(listitem==4)
{
CreatePlayerVehicle(playerid, 541, -1706.9330,11.5702,3.2606,316.5364,GetName(playerid),0,0,0,0);
SetVehicleParamsEx(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, alarm, doors, bonnet, boot, objective);
return 1;
}
if(listitem==5)
{
CreatePlayerVehicle(playerid, 477, -1706.9330,11.5702,3.2606,316.5364,GetName(playerid),0,0,0,0);
SetVehicleParamsEx(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, alarm, doors, bonnet, boot, objective);
return 1;
}
if(listitem==6)
{
CreatePlayerVehicle(playerid, 429, -1706.9330,11.5702,3.2606,316.5364,GetName(playerid),0,0,0,0);
SetVehicleParamsEx(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, alarm, doors, bonnet, boot, objective);
return 1;
}
if(listitem==7)
{
CreatePlayerVehicle(playerid, 415, -1706.9330,11.5702,3.2606,316.5364,GetName(playerid),0,0,0,0);
SetVehicleParamsEx(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, alarm, doors, bonnet, boot, objective);
return 1;
}
if(listitem==8)
{
CreatePlayerVehicle(playerid, 506, -1706.9330,11.5702,3.2606,316.5364,GetName(playerid),0,0,0,0);
SetVehicleParamsEx(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_OFF, VEHICLE_PARAMS_OFF, alarm, doors, bonnet, boot, objective);
return 1;
}
}
if(!response)
{
return 1;
}
}
Ich hoffe es könnte mir jemand helfen.