Beiträge von Robdan1395
-
-
Versuch ma ne andere Mysql version zu nehmen
-
Hallo ich habe mal auf einem Server gesehen wie insgesamt 5 Leute (oder mehr) in einem Sultan waren kann man das irgendwie scripten ???
-
ganz oben das hier?:
#define MAX_PLAYERS 10 ???und dann das ergänzen?
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);
MAX_PLAYERS 0 =AttachObjectToVehicle(blue, vehid, 0.8,0,-0.70,0,0,0);
MAX_PLAYERS 1 =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);
MAX_PLAYERS 2 =AttachObjectToVehicle(gruen, vehid, 0.8,0,-0.70,0,0,0);
MAX_PLAYERS 3=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);
MAX_PLAYERS 4 =AttachObjectToVehicle(gelb, vehid, 0.8,0,-0.70,0,0,0);
MAX_PLAYERS 5 =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);
MAX_PLAYERS 6 =AttachObjectToVehicle(weiss, vehid, 0.8,0,-0.70,0,0,0);
MAX_PLAYERS 7 =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);
MAX_PLAYERS 8 =AttachObjectToVehicle(pink, vehid, 0.8,0,-0.70,0,0,0);
MAX_PLAYERS 9 =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)
{
DestroyObject(MAX_PLAYERS 0[playerid]);
DestroyObject(MAX_PLAYERS 1[playerid]);
DestroyObject(MAX_PLAYERS 2[playerid]);
DestroyObject(MAX_PLAYERS 3[playerid]);
DestroyObject(MAX_PLAYERS 4[playerid]);
DestroyObject(MAX_PLAYERS 5[playerid]);
DestroyObject(MAX_PLAYERS 6[playerid]);
DestroyObject(MAX_PLAYERS 7[playerid]);
DestroyObject(MAX_PLAYERS 8[playerid]);
DestroyObject(MAX_PLAYERS 9[playerid]);
GameTextForPlayer(playerid, "~g~Das Neon wurde von deinem Auto entfernt",3500,5);
GivePlayerMoney(playerid, -5000);
}
return 1;
}
} -
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;
}
} -
Ich habs jezt mal so gemacht dann gings aber 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;
}
} -
ne da kommen keine neon röhren zum vorschein
-
hey leute das ist mein Neonbefehl ich bekomme zwar ein dialog fenster wo ich die neonfarben auswählen kann jedoch bekomm ich keine neons dran was hab ich falsch gemacht ... ?
ganz oben:
#define NEON 210dann:
if(strcmp(cmd, "/neon", true) == 0)
{
ShowPlayerDialog(playerid, NEON, DIALOG_STYLE_LIST, "Neonshop","Blau\nGrün\nGelb\nWeiss\nPink\n\nNeon entfernen","Auswählen","Abbrechen");
return 1;
}und dann:
if(dialogid == NEON)
{
if(response)
{
if(listitem == 0)
{
SetPVarInt(playerid, "neon", 1);
SetPVarInt(playerid, "blue", CreateDynamicObject(18648,0,0,0,0,0,0));
SetPVarInt(playerid, "blue1", CreateDynamicObject(18648,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "blue"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "blue1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
GameTextForPlayer(playerid, "~b~ Blue ~w~Neon wurde an deinem auto angebracht",3500,5);
GivePlayerMoney(playerid, -5000);
}
if(listitem == 1)
{
SetPVarInt(playerid, "neon", 1);
SetPVarInt(playerid, "green", CreateDynamicObject(18649,0,0,0,0,0,0));
SetPVarInt(playerid, "green1", CreateDynamicObject(18649,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "green"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "green1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
GameTextForPlayer(playerid, "~g~Green ~w~Neon wurde an deinem auto angebracht",3500,5);
GivePlayerMoney(playerid, -5000);
}
if(listitem == 2)
{
SetPVarInt(playerid, "neon", 1);
SetPVarInt(playerid, "yellow", CreateDynamicObject(18650,0,0,0,0,0,0));
SetPVarInt(playerid, "yellow1", CreateDynamicObject(18650,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "yellow"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "yellow1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
GameTextForPlayer(playerid, "~y~Yellow~w~ Neon wurde an deinem auto angebracht",3500,5);
GivePlayerMoney(playerid, -5000);
}
if(listitem == 3)
{
SetPVarInt(playerid, "neon", 1);
SetPVarInt(playerid, "white", CreateDynamicObject(18652,0,0,0,0,0,0));
SetPVarInt(playerid, "white1", CreateDynamicObject(18652,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "white"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "white1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
GameTextForPlayer(playerid, "~w~White~w~ Neon wurde an deinem auto angebracht",3500,5);
GivePlayerMoney(playerid, -5000);
}
if(listitem == 4)
{
SetPVarInt(playerid, "neon", 1);
SetPVarInt(playerid, "pink", CreateDynamicObject(18651,0,0,0,0,0,0));
SetPVarInt(playerid, "pink1", CreateDynamicObject(18651,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "pink"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "pink1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
GameTextForPlayer(playerid, "~p~Pink~w~ Neon wurde an deinem auto angebracht",3500,5);
GivePlayerMoney(playerid, -5000);
}
if(listitem == 5)
{
DestroyObject(GetPVarInt(playerid, "blue"));
DeletePVar(playerid, "neon");
DestroyObject(GetPVarInt(playerid, "blue1"));
DeletePVar(playerid, "neon");
DestroyObject(GetPVarInt(playerid, "green"));
DeletePVar(playerid, "neon");
DestroyObject(GetPVarInt(playerid, "green1"));
DeletePVar(playerid, "neon");
DestroyObject(GetPVarInt(playerid, "yellow"));
DeletePVar(playerid, "neon");
DestroyObject(GetPVarInt(playerid, "yellow1"));
DeletePVar(playerid, "neon");
DestroyObject(GetPVarInt(playerid, "white"));
DeletePVar(playerid, "neon");
DestroyObject(GetPVarInt(playerid, "white1"));
DeletePVar(playerid, "neon");
DestroyObject(GetPVarInt(playerid, "pink"));
DeletePVar(playerid, "neon");
DestroyObject(GetPVarInt(playerid, "pink1"));
DeletePVar(playerid, "neon");
GameTextForPlayer(playerid, "~g~Das beon wurde von deinem Auto entfernt",3500,5);
GivePlayerMoney(playerid, -5000);}
}
return 1;
} -
Vielen dank
-
Der Soll den Fürerschein geben den ich reingescriptet habe
Ich bin jezt soweit dass wenn ich in ein Fahrzeug einsteige ich rausgeworfen werde : Ich habe keinen Fürerscheinjetzt will ich den befehl machen dass ich mir den fürerschein geben kann ...
-
Ich hab jezt dass ich rausgeworfen werde wie erstell ich denn den befehl
if(strcmp(cmdtext,"/lic",true)==0)
{
WAS KOMMT HIER REIN O_o :SSS
} -
so hab ich es versucht aber wenn ich in ein motorrad oder auto einsteige passiert gar nix ...
if(GetPVarInt(playerid,"Führerschein")==0)
{
RemovePlayerFromVehicle(playerid);
return 1;
} -
Ich hab ein Selfmade angefangen und möchte ein Fürerscheinsystem erstellen wo mann dann ein Fahrzeug nur mit dem dazugehörigen Fürerschein fahren kann und dass man die Fürerscheine mit einem Befehl verteilen kann weiss da einer wie ich das mache ?
-
Ich möchte ein Befehl erstellen der alle "unbesetzten" Autos die ich im Script eingefügt habe zurückspawnt