Hey, ich hab ein Neon System mit Speicherung nun möchte ich das Ganze gerne ins Gamemode einbauen "Vorher FIlterscript"
Nun ich hab Versucht das Ganze unter OnGameModeInit zu Setzen aber dies Klappte nicht die Ganzen Anderen Sachen DIalog Befehl etc hab ich Bereits eingebaut nur hier Scheitere ich
Wie muss ich den Code Bearbeiten das ich ihn unter OnGameModeInit Setzen kann ?
Code
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print("NeonSystem mit Speicherung by Soldtodie");
print("--------------------------------------\n");
for(new i = 0; i < MAX_VEHICLES; i++)
{
new NeonDatei[64];
format(NeonDatei,sizeof(NeonDatei),"/Neons/%d.ini", i);
if (fexist(NeonDatei))
{
if(strcmp(dini_Get(NeonDatei, "Farbe"), "DunkelBlau", false) == 0)
{
new Float:x,Float:y,Float:z;
AttachObjectToVehicle(CreateObject(18648,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(CreateObject(18648,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0);
}
if(strcmp(dini_Get(NeonDatei, "Farbe"), "Rot", false) == 0)
{
new Float:x,Float:y,Float:z;
AttachObjectToVehicle(CreateObject(18647,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(CreateObject(18647,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0);
}
if(strcmp(dini_Get(NeonDatei, "Farbe"), "Gruen", false) == 0)
{
new Float:x,Float:y,Float:z;
AttachObjectToVehicle(CreateObject(18649,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(CreateObject(18649,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0);
}
if(strcmp(dini_Get(NeonDatei, "Farbe"), "Weiss", false) == 0)
{
new Float:x,Float:y,Float:z;
AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0);
}
if(strcmp(dini_Get(NeonDatei, "Farbe"), "Lila", false) == 0)
{
new Float:x,Float:y,Float:z;
AttachObjectToVehicle(CreateObject(18651,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(CreateObject(18651,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0);
}
if(strcmp(dini_Get(NeonDatei, "Farbe"), "Gelb", false) == 0)
{
new Float:x,Float:y,Float:z;
AttachObjectToVehicle(CreateObject(18650,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(CreateObject(18650,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0);
}
if(strcmp(dini_Get(NeonDatei, "Farbe"), "Tuerkis", false) == 0)
{
new Float:x,Float:y,Float:z;
AttachObjectToVehicle(CreateObject(18648,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(CreateObject(18648,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(CreateObject(18649,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(CreateObject(18649,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0);
}
if(strcmp(dini_Get(NeonDatei, "Farbe"), "HellBlau", false) == 0)
{
new Float:x,Float:y,Float:z;
AttachObjectToVehicle(CreateObject(18648,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(CreateObject(18648,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0);
}
if(strcmp(dini_Get(NeonDatei, "Farbe"), "Pink", false) == 0)
{
new Float:x,Float:y,Float:z;
AttachObjectToVehicle(CreateObject(18647,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(CreateObject(18647,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0);
}
if(strcmp(dini_Get(NeonDatei, "Farbe"), "Orange", false) == 0)
{
new Float:x,Float:y,Float:z;
AttachObjectToVehicle(CreateObject(18647,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(CreateObject(18647,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(CreateObject(18650,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(CreateObject(18650,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0);
}
if(strcmp(dini_Get(NeonDatei, "Farbe"), "HellGruen", false) == 0)
{
new Float:x,Float:y,Float:z;
AttachObjectToVehicle(CreateObject(18649,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(CreateObject(18649,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0);
}
if(strcmp(dini_Get(NeonDatei, "Farbe"), "Gold", false) == 0)
{
new Float:x,Float:y,Float:z;
AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(CreateObject(18652,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(CreateObject(18650,x,y,z,0,0,0,283), i, 0.8,0,-0.70,0,0,0);
AttachObjectToVehicle(CreateObject(18650,x,y,z,0,0,0,283), i, -0.8,0,-0.70,0,0,0);
}
}
}
return 1;
}
Alles anzeigen