Ich hab mir ein neon system gechrieben und hier liegt das problem neon funktioniert alles aber ich kann es nicht entfernen ich weiss nicht was ich in listitem 5 schreiben soll also zum entfernen DestroyObject("unddann???"
if(dialogid == NEON)
{
if(response)
{
if(listitem == 0)//BLAU
{
new vehid,blue,blue1;
vehid = GetPlayerVehicleID(playerid);
blue = CreateObject(18648,0,0,0,0,0,0,288);
blue1 = CreateObject(18648,0,0,0,0,0,0,288);
AttachObjectToVehicle(blue, vehid, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(blue1, vehid, -0.8,0,-0.70,0,0,0);
GameTextForPlayer(playerid, "~b~ Blaues~w~Neon wurde an deinem auto angebracht",3500,5);
GivePlayerMoney(playerid, -5000);
}
if(listitem == 1)//GRÜN
{
new vehid,gruen,gruen1;
vehid = GetPlayerVehicleID(playerid);
gruen = CreateObject(18649,0,0,0,0,0,0,287);
gruen1 = CreateObject(18649,0,0,0,0,0,0,287);
AttachObjectToVehicle(gruen, vehid, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(gruen1, vehid, -0.8,0,-0.70,0,0,0);
GameTextForPlayer(playerid, "~g~Gruenes~w~Neon wurde an deinem auto angebracht",3500,5);
GivePlayerMoney(playerid, -5000);
}
if(listitem == 2)//GELB
{
new vehid,gelb,gelb1;
vehid = GetPlayerVehicleID(playerid);
gelb = CreateObject(18650,0,0,0,0,0,0,286);
gelb1 = CreateObject(18650,0,0,0,0,0,0,286);
AttachObjectToVehicle(gelb, vehid, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(gelb1, vehid, -0.8,0,-0.70,0,0,0);
GameTextForPlayer(playerid, "~y~Gelbes~w~ Neon wurde an deinem auto angebracht",3500,5);
GivePlayerMoney(playerid, -5000);
}
if(listitem == 3)//WEISS
{
new vehid,weiss,weiss1;
vehid = GetPlayerVehicleID(playerid);
weiss = CreateObject(18652,0,0,0,0,0,0,285);
weiss1 = CreateObject(18652,0,0,0,0,0,0,285);
AttachObjectToVehicle(weiss, vehid, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(weiss1, vehid, -0.8,0,-0.70,0,0,0);
GameTextForPlayer(playerid, "~w~Weisses~w~ Neon wurde an deinem auto angebracht",3500,5);
GivePlayerMoney(playerid, -5000);
}
if(listitem == 4)//PINK
{
new vehid,pink,pink1;
vehid = GetPlayerVehicleID(playerid);
pink = CreateObject(18651,0,0,0,0,0,0,283);
pink1 = CreateObject(18651,0,0,0,0,0,0,283);
AttachObjectToVehicle(pink, vehid, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(pink1, vehid, -0.8,0,-0.70,0,0,0);
GameTextForPlayer(playerid, "~p~Pinkes~w~ Neon wurde an deinem auto angebracht",3500,5);
GivePlayerMoney(playerid, -5000);
}
if(listitem == 5)
{
hier kommt ja DestroyObject aber weiss net wie
GameTextForPlayer(playerid, "~g~Das Neon wurde von deinem Auto entfernt",3500,5);
GivePlayerMoney(playerid, -5000);
}
return 1;
}
}