if(dialogid == DIALOG_FREIKAUFEN)
{
static place;
new slot = Dtc_PlayerKey[playerid];
switch(place)
{
case 0:
{
//Bei "CarId" muss das rein, was bei CreateVehicle vom PlayerCar steht.
SetVehiclePos(PlayerCar[playerid][slot][CarId], 9999.0, -9999.0, -200.0);
PlayerCar[playerid][slot][CarPos_x] = 2249.0;
PlayerCar[playerid][slot][CarPos_y] = 3130.0;
PlayerCar[playerid][slot][CarPos_z] = 2007.0;
PlayerCar[playerid][slot][CarRotate] = 0.0;
place = 1;
}
case 1:
{
//Bei "CarId" muss das rein, was bei CreateVehicle vom PlayerCar steht.
SetVehiclePos(PlayerCar[playerid][slot][CarId], 9999.0, -9999.0, -200.0);
PlayerCar[playerid][slot][CarPos_x] = 2245.0;
PlayerCar[playerid][slot][CarPos_y] = 0942.0;
PlayerCar[playerid][slot][CarPos_z] = 2007.0;
PlayerCar[playerid][slot][CarRotate] = 0.0;
place = 2;
}
case 2:
{
//Bei "CarId" muss das rein, was bei CreateVehicle vom PlayerCar steht.
SetVehiclePos(PlayerCar[playerid][slot][CarId], 9999.0, -9999.0, -200.0);
PlayerCar[playerid][slot][CarPos_x] = 2241.0;
PlayerCar[playerid][slot][CarPos_y] = 0894.0;
PlayerCar[playerid][slot][CarPos_z] = 2007.0;
PlayerCar[playerid][slot][CarRotate] = 0.0;
place = 0;
}
}
PlayerCar[playerid][slot][Abgeschleppt] = 0;
OnPlayerCarUpdate(playerid,false);
return SendClientMessage(playerid, 0xFFFFFFFF, "Freigekauft.");
}
if(strcmp("/freikaufen", cmdtext, true) == 0)
{
new str_aut[512], slot = Dtc_PlayerKey[playerid];
if(PlayerCar[playerid][slot][Abgeschleppt] == 1)
{
format(str_aut, sizeof(str_aut), "Fahrzeugname: %s\n", str_aut, CarName[PlayerCar[playerid][slot][CarModel]-400]);
ShowPlayerDialog(playerid, DIALOG_FREIKAUFEN, DIALOG_STYLE_MSGBOX, "Information", string, "Freikaufen", "Abbrechen");
}
else SendClientMessage(playerid, 0xFF0000FF, "Error: Fahrzeug ist nicht abgeschleppt, wechsele den Schlüssel.");
return 1;
}
AddStaticVehicle(560,2249.3130,2007.7671,10.5253,0.2480,3,3); // //POS1
AddStaticVehicle(560,2245.0942,2007.8237,10.5254,358.3666,3,3); // //POS2
AddStaticVehicle(560,2241.0894,2007.8383,10.5254,359.3096,3,3); // //POS3
von /opark hab ich SetVehiclePos(PlayerCar[playerid][slot][CarId], 9999.0, -9999.0, -200.0);
9999.0, -9999.0, -200.0 <- Das Eingesetzt!
//E: in PWN Code Gesetzt
//E: Error Behoben nur mehr 1!
//E: Errors Behoben!
//E; Wen ich /freikaufen benutze funktioniert das nicht! bzw passiert nichts!