Hallo WIe muss ich das Definen
Es geht bei mir nicht dann kann ich mich nicht mehr einloggen
Code
if (strcmp("/buyneon", cmdtext, true, 10) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GRAD1, "Du bist kein PremiumUser");
return 1;
}
if(!PlayerToPoint(20.0,playerid,93.4003,-164.7377,2.5938))
{
SendClientMessage(playerid,0xAA3333AA,"Du bist nicht beim Neonshop!"); //jeremy95
return 1;
}
if(PlayerInfo[playerid][pDonateRank] >= 1)
{
if(GetPlayerMoney(playerid) < 1)
{
SendClientMessage(playerid, 0xAA3333AA, "Du hast nicht genug Geld !");
return 1;
}
if(IsPlayerInAnyVehicle(playerid))
{
if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER)
{
SendClientMessage(playerid, COLOR_WHITE, " Du bist nicht der Fahrer");
return 1;
}
ShowPlayerDialog(playerid, NEON, DIALOG_STYLE_LIST, "Choose your neon colour","Blau\nGrün\nGelb\nWeiß\nPink\nNeon entfernen","OK","Schließen");
}
else
{
SendClientMessage(playerid, COLOR_WHITE, " Du Bist nicht in einem Auto");
}
return 1;
}
}
Alles anzeigen
Code
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;
}
Alles anzeigen
Und so habe ich das Defined
Ich bitte um eure Mithilfe