Kennste du auch die ID's von Polizeicars?
Mach aus das :
ShowPlayerDialog(playerid, Waffenmenu, DIALOG_STYLE_LIST, "Getunte cars", "sultan\njester\ninfernus\nsavanna\nblade\nflash\nclub\nuranus\nelegy\nstratum\nLimo\nLandstalker\nSuper GT\nPremier\nSabre\nBlista Compact\nSandking", "Auswählen", "Abbrechen");
Dash hier:
ShowPlayerDialog(playerid, Waffenmenu, DIALOG_STYLE_LIST, "Getunte cars", "sultan\njester\ninfernus\nsavanna\nblade\nflash\nclub\nuranus\nelegy\nstratum\nLimo\nLandstalker\nSuper GT\nPremier\nSabre\nBlista Compact\nSandking\nPolice car", "Auswählen", "Abbrechen");
if(listitem == 16) // car
{
new Float:X,Float:Y,Float:Z,Float:Angle, carid;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
carid = GetPlayerVehicleID(playerid);
carid = CreateVehicle(495,X,Y,Z,Angle,-1,-1,600);
GivePlayerMoney(playerid, -3000);
AddVehicleComponent(carid,1010);
AddVehicleComponent(carid,1087);
ChangeVehiclePaintjob(carid,1);
PutPlayerInVehicle(playerid,carid,0);
TogglePlayerControllable(playerid,true);
}
Unter das machst du
das rein
if(listitem == 17) // car
{
new Float:X,Float:Y,Float:Z,Float:Angle, carid;
GetPlayerPos(playerid,X,Y,Z);
GetPlayerFacingAngle(playerid,Angle);
carid = GetPlayerVehicleID(playerid);
carid = CreateVehicle(596,X,Y,Z,Angle,-1,-1,600);
GivePlayerMoney(playerid, -3000);
AddVehicleComponent(carid,1010);
AddVehicleComponent(carid,1087);
ChangeVehiclePaintjob(carid,1);
PutPlayerInVehicle(playerid,carid,0);
TogglePlayerControllable(playerid,true);
}
dann hast du diesen police car noch drinn:
oder du macht stat das:
carid = CreateVehicle(596,X,Y,Z,Angle,-1,-1,600);
das hier:
carid = CreateVehicle(597,X,Y,Z,Angle,-1,-1,600);
dann hast du so ein cop car:
oder du macht :
carid = CreateVehicle(598,X,Y,Z,Angle,-1,-1,600);
dann hast du:
oder
carid = CreateVehicle(599,X,Y,Z,Angle,-1,-1,600);
dann hast du denn:
ja