Beiträge von Ralf

    hallo meine Textdraws sind nur für einen Spieler sichtbar und das soll nich dein wie mache ich dass hjeder den haben kann


    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    if(newstate == PLAYER_STATE_DRIVER)
    {
    if(Motor[playerid] != 1)
    {
    SendClientMessage(playerid,Rot,"Du kannst den Motor mit der Taste [Num2] oder mit /motor starten.");
    }
    else
    {
    SendClientMessage(playerid,Rot,"Du kannst den Motor mit der Taste [Num2] oder mit /motor ausschalten.");
    }
    if(Licht != 1)
    {
    SendClientMessage(playerid,Orange,"Du kannst das Licht mit der Taste [Num8] oder mit /licht einschalten.");
    }
    else
    {
    SendClientMessage(playerid,Orange,"Du kannst das Licht mit der Taste [Num8] oder mit /licht ausschalten.");
    }
    Textdraw0 = TextDrawCreate(618.000000, 346.000000, "_");
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 1);
    TextDrawLetterSize(Textdraw0, 0.539999, 1.000000);
    TextDrawColor(Textdraw0, -1);
    TextDrawSetOutline(Textdraw0, 0);
    TextDrawSetProportional(Textdraw0, 0);
    TextDrawSetShadow(Textdraw0, 1);
    TextDrawUseBox(Textdraw0, 1);
    TextDrawBoxColor(Textdraw0, 170);
    TextDrawTextSize(Textdraw0, 467.000000, 0.000000);
    TextDrawSetSelectable(Textdraw0, 0);


    Textdraw1 = TextDrawCreate(618.000000, 378.000000, "_");
    TextDrawBackgroundColor(Textdraw1, 255);
    TextDrawFont(Textdraw1, 1);
    TextDrawLetterSize(Textdraw1, 0.539999, 1.000000);
    TextDrawColor(Textdraw1, -1);
    TextDrawSetOutline(Textdraw1, 0);
    TextDrawSetProportional(Textdraw1, 0);
    TextDrawSetShadow(Textdraw1, 1);
    TextDrawUseBox(Textdraw1, 1);
    TextDrawBoxColor(Textdraw1, 170);
    TextDrawTextSize(Textdraw1, 467.000000, 2.000000);
    TextDrawSetSelectable(Textdraw1, 0);


    Textdraw2 = TextDrawCreate(618.000000, 362.000000, "_");
    TextDrawBackgroundColor(Textdraw2, 255);
    TextDrawFont(Textdraw2, 1);
    TextDrawLetterSize(Textdraw2, 0.539999, 1.000000);
    TextDrawColor(Textdraw2, -1);
    TextDrawSetOutline(Textdraw2, 0);
    TextDrawSetProportional(Textdraw2, 0);
    TextDrawSetShadow(Textdraw2, 1);
    TextDrawUseBox(Textdraw2, 1);
    TextDrawBoxColor(Textdraw2, 170);
    TextDrawTextSize(Textdraw2, 467.000000, 0.000000);
    TextDrawSetSelectable(Textdraw2, 0);


    new string[128],pVeh;
    pVeh=GetPlayerVehicleID(playerid);
    new model = GetVehicleModel(pVeh);
    format(string,sizeof(string),"%s",CarName[model-400]);
    Textdraw3 = TextDrawCreate(470.000000, 345.000000, string);
    TextDrawBackgroundColor(Textdraw3, 255);
    TextDrawFont(Textdraw3, 1);
    TextDrawLetterSize(Textdraw3, 0.500000, 1.000000);
    TextDrawColor(Textdraw3, -1);
    TextDrawSetOutline(Textdraw3, 0);
    TextDrawSetProportional(Textdraw3, 1);
    TextDrawSetShadow(Textdraw3, 1);
    TextDrawSetSelectable(Textdraw3, 0);


    Textdraw4 = TextDrawCreate(470.000000, 361.000000, "Km/h:");
    TextDrawBackgroundColor(Textdraw4, 255);
    TextDrawFont(Textdraw4, 1);
    TextDrawLetterSize(Textdraw4, 0.500000, 1.000000);
    TextDrawColor(Textdraw4, -1);
    TextDrawSetOutline(Textdraw4, 0);
    TextDrawSetProportional(Textdraw4, 1);
    TextDrawSetShadow(Textdraw4, 1);
    TextDrawSetSelectable(Textdraw4, 0);



    Zustand[playerid] = CreatePlayerTextDraw(playerid,470.000000,377.000000,"100%");
    PlayerTextDrawBackgroundColor(playerid,Zustand[playerid], 255);
    PlayerTextDrawFont(playerid,Zustand[playerid], 1);
    PlayerTextDrawLetterSize(playerid,Zustand[playerid], 0.500000, 1.000000);
    PlayerTextDrawColor(playerid,Zustand[playerid], -1);
    PlayerTextDrawSetOutline(playerid,Zustand[playerid], 0);
    PlayerTextDrawSetProportional(playerid,Zustand[playerid], 1);
    PlayerTextDrawSetShadow(playerid,Zustand[playerid], 0);


    Textdraw5 = TextDrawCreate(470.000000, 377.000000, "Zustand:");
    TextDrawBackgroundColor(Textdraw5, 255);
    TextDrawFont(Textdraw5, 1);
    TextDrawLetterSize(Textdraw5, 0.500000, 1.000000);
    TextDrawColor(Textdraw5, -1);
    TextDrawSetOutline(Textdraw5, 0);
    TextDrawSetProportional(Textdraw5, 1);
    TextDrawSetShadow(Textdraw5, 1);
    TextDrawSetSelectable(Textdraw5, 0);


    TextDrawShowForPlayer(playerid, Textdraw0);
    TextDrawShowForPlayer(playerid, Textdraw1);
    TextDrawShowForPlayer(playerid, Textdraw2);
    TextDrawShowForPlayer(playerid, Textdraw3);
    TextDrawShowForPlayer(playerid, Textdraw4);
    TextDrawShowForPlayer(playerid, Textdraw5);
    }
    if(newstate == PLAYER_STATE_ONFOOT)
    {
    TextDrawHideForAll(Textdraw0);
    TextDrawDestroy(Textdraw0);
    TextDrawHideForAll(Textdraw1);
    TextDrawDestroy(Textdraw1);
    TextDrawHideForAll(Textdraw2);
    TextDrawDestroy(Textdraw2);
    TextDrawHideForAll(Textdraw3);
    TextDrawDestroy(Textdraw3);
    TextDrawHideForAll(Textdraw4);
    TextDrawDestroy(Textdraw4);
    TextDrawHideForAll(Textdraw5);
    TextDrawDestroy(Textdraw5);
    TextDrawHideForAll(Textdraw5);
    TextDrawDestroy(Textdraw5);
    }

    Hallo Breadfisch ich hab vor mir ein "SelfmadeTacho" zu estellen und möchte auslesen was der Spieler für eine Vehicle Id hat und anzeigen lassen wie z.b Infernus oder so wie mache ich das am besten ich kann ja nich 250 mal if(Model ==411) oder so machen Ich möchte aus ModelName infernus oder Bullet machen wie am besten ?




    Hab doch ein kleines Prob wenn ich 2 Autos hab und im 1.den Motor starte und im anderen noch aus is und im ersten auto anlasse und ins 2. Auto gehe steht Motor ausgeschaltet und muss das nochmal eingeben damit er angeht.



    ocmd:motor(playerid,params[])
    {
    if(Motor[playerid]==0)
    {
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du bist in keinem Fahrzeug!");
    new engine, lights, alarm, doors, bonnet, boot, objective,pVeh;
    pVeh=GetPlayerVehicleID(playerid);
    if(GetVehicleModel(pVeh) == 481 || GetVehicleModel(pVeh) == 509 || GetVehicleModel(pVeh) == 510) return SendClientMessage(playerid,Rot,"Ein Fahrrad hat keinen Motor!");
    GetVehicleParamsEx(pVeh, engine, lights, alarm, doors, bonnet, boot, objective);
    SetVehicleParamsEx(pVeh, 1, lights, alarm, doors, bonnet, boot, objective);
    SendClientMessage(playerid,Gruen,"Du hast den Motor gestartet.");
    Motor[playerid]=1;
    }
    else
    {
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du bist in keinem Fahrzeug!");
    new engine, lights, alarm, doors, bonnet, boot, objective,pVeh;
    pVeh=GetPlayerVehicleID(playerid);
    if(GetVehicleModel(pVeh) == 481 || GetVehicleModel(pVeh) == 509 || GetVehicleModel(pVeh) == 510) return SendClientMessage(playerid,Rot,"Ein Fahrrad hat keinen Motor!");
    GetVehicleParamsEx(pVeh, engine, lights, alarm, doors, bonnet, boot, objective);
    SetVehicleParamsEx(pVeh, 0, lights, alarm, doors, bonnet, boot, objective);
    SendClientMessage(playerid,Rot,"Du hast den Motor ausgeschalten.");
    Motor[playerid]=0;
    }
    return 1;
    }

    Wie mache ich das das mit dem timer geht er aktualisiert nicht und der Td is jetzt immer da ?


    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
    {
    Textdraw0 = TextDrawCreate(618.000000, 346.000000, "_");
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 1);
    TextDrawLetterSize(Textdraw0, 0.539999, 1.000000);
    TextDrawColor(Textdraw0, -1);
    TextDrawSetOutline(Textdraw0, 0);
    TextDrawSetProportional(Textdraw0, 0);
    TextDrawSetShadow(Textdraw0, 1);
    TextDrawUseBox(Textdraw0, 1);
    TextDrawBoxColor(Textdraw0, 170);
    TextDrawTextSize(Textdraw0, 467.000000, 0.000000);
    TextDrawSetSelectable(Textdraw0, 0);
    Textdraw1 = TextDrawCreate(618.000000, 378.000000, "_");
    TextDrawBackgroundColor(Textdraw1, 255);
    TextDrawFont(Textdraw1, 1);
    TextDrawLetterSize(Textdraw1, 0.539999, 1.000000);
    TextDrawColor(Textdraw1, -1);
    TextDrawSetOutline(Textdraw1, 0);
    TextDrawSetProportional(Textdraw1, 0);
    TextDrawSetShadow(Textdraw1, 1);
    TextDrawUseBox(Textdraw1, 1);
    TextDrawBoxColor(Textdraw1, 170);
    TextDrawTextSize(Textdraw1, 467.000000, 2.000000);
    TextDrawSetSelectable(Textdraw1, 0);
    Textdraw2 = TextDrawCreate(618.000000, 362.000000, "_");
    TextDrawBackgroundColor(Textdraw2, 255);
    TextDrawFont(Textdraw2, 1);
    TextDrawLetterSize(Textdraw2, 0.539999, 1.000000);
    TextDrawColor(Textdraw2, -1);
    TextDrawSetOutline(Textdraw2, 0);
    TextDrawSetProportional(Textdraw2, 0);
    TextDrawSetShadow(Textdraw2, 1);
    TextDrawUseBox(Textdraw2, 1);
    TextDrawBoxColor(Textdraw2, 170);
    TextDrawTextSize(Textdraw2, 467.000000, 0.000000);
    TextDrawSetSelectable(Textdraw2, 0);
    Textdraw4 = TextDrawCreate(470.000000, 361.000000, "Km/h:");
    TextDrawBackgroundColor(Textdraw4, 255);
    TextDrawFont(Textdraw4, 1);
    TextDrawLetterSize(Textdraw4, 0.500000, 1.000000);
    TextDrawColor(Textdraw4, -1);
    TextDrawSetOutline(Textdraw4, 0);
    TextDrawSetProportional(Textdraw4, 1);
    TextDrawSetShadow(Textdraw4, 1);
    TextDrawSetSelectable(Textdraw4, 0);
    SetTimerEx("VehhealthTimer",100,true,"f",playerid);
    // new Float:health,string[128],vehicleid;
    // vehicleid=GetPlayerVehicleID(playerid);
    // GetVehicleHealth(vehicleid,health);
    // format(string,sizeof(string),"Zustand: %d%",floatround(health,floatround_round)/10);
    // Textdraw5 = TextDrawCreate(470.000000, 377.000000, string);
    TextDrawBackgroundColor(Textdraw5, 255);
    TextDrawFont(Textdraw5, 1);
    TextDrawLetterSize(Textdraw5, 0.500000, 1.000000);
    TextDrawColor(Textdraw5, -1);
    TextDrawSetOutline(Textdraw5, 0);
    TextDrawSetProportional(Textdraw5, 1);
    TextDrawSetShadow(Textdraw5, 1);
    TextDrawSetSelectable(Textdraw5, 0);
    TextDrawShowForPlayer(playerid, Textdraw0);
    TextDrawShowForPlayer(playerid, Textdraw1);
    TextDrawShowForPlayer(playerid, Textdraw2);
    TextDrawShowForPlayer(playerid, Textdraw4);
    TextDrawShowForPlayer(playerid, Textdraw5);
    }
    if(newstate == PLAYER_STATE_ONFOOT)
    {
    TextDrawHideForAll(Textdraw0);
    TextDrawDestroy(Textdraw0);
    TextDrawHideForAll(Textdraw1);
    TextDrawDestroy(Textdraw1);
    TextDrawHideForAll(Textdraw2);
    TextDrawDestroy(Textdraw2);
    TextDrawHideForAll(Textdraw4);
    TextDrawDestroy(Textdraw4);
    TextDrawHideForAll(Textdraw5);
    TextDrawDestroy(Textdraw5);
    }
    return 1;
    }
    public VehhealthTimer(playerid)
    {
    new Float:health,string[128],vehicleid;
    vehicleid=GetPlayerVehicleID(playerid);
    GetVehicleHealth(vehicleid,health);
    format(string,sizeof(string),"Zustand: %d%",floatround(health,floatround_round)/10);
    Textdraw5 = TextDrawCreate(470.000000, 377.000000, string);
    }


    Edit: und wäre ich du würde ich es ändern das der Motor nicht direkt bei jedem Spieler an geht, also du drückst sagen wir N damit der Motor an geht dann geht automatisch jeder andere Motor auch an soweit ich weiß kann mich aber auch irren ^^




    Grüße

    Wenn du das so meinst dass wenn ich num 2 drück der Motor bei jedem Spieler ausgehen würde ?



    Und wie mache ich dass nur der Fahrer den Motor ausmachen kann?

    Wie mache ich dass ich den Motor mit z.b >Num 0 Starten kann habs so geamcht aber ist halt nur ein Befehl und möchte dass man mit dem Befehl und mit num 0 starten kann



    ocmd:motor(playerid,params[])
    {
    if(Motor==0)
    {
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du bist in keinem Fahrzeug!");
    new engine, lights, alarm, doors, bonnet, boot, objective,pVeh;
    pVeh=GetPlayerVehicleID(playerid);
    if(GetVehicleModel(pVeh) == 481 || GetVehicleModel(pVeh) == 509 || GetVehicleModel(pVeh) == 510) return SendClientMessage(playerid,Rot,"Ein Fahrrad hat keinen Motor!");
    GetVehicleParamsEx(pVeh, engine, lights, alarm, doors, bonnet, boot, objective);
    SetVehicleParamsEx(pVeh, 1, lights, alarm, doors, bonnet, boot, objective);
    SendClientMessage(playerid,Gruen,"Du hast den Motor gestartet.");
    Motor=1;
    }
    else
    {
    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,Rot,"Du bist in keinem Fahrzeug!");
    new engine, lights, alarm, doors, bonnet, boot, objective,pVeh;
    pVeh=GetPlayerVehicleID(playerid);
    if(GetVehicleModel(pVeh) == 481 || GetVehicleModel(pVeh) == 509 || GetVehicleModel(pVeh) == 510) return SendClientMessage(playerid,Rot,"Ein Fahrrad hat keinen Motor!");
    GetVehicleParamsEx(pVeh, engine, lights, alarm, doors, bonnet, boot, objective);
    SetVehicleParamsEx(pVeh, 0, lights, alarm, doors, bonnet, boot, objective);
    SendClientMessage(playerid,Rot,"Du hast den Motor ausgeschalten.");
    Motor=0;
    }
    return 1;
    }

    Beavis
    Ist das so richtig mit flatrount funzt i wie nicht ;(
    if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
    {
    Textdraw0 = TextDrawCreate(618.000000, 346.000000, "_");
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 1);
    TextDrawLetterSize(Textdraw0, 0.539999, 1.000000);
    TextDrawColor(Textdraw0, -1);
    TextDrawSetOutline(Textdraw0, 0);
    TextDrawSetProportional(Textdraw0, 0);
    TextDrawSetShadow(Textdraw0, 1);
    TextDrawUseBox(Textdraw0, 1);
    TextDrawBoxColor(Textdraw0, 170);
    TextDrawTextSize(Textdraw0, 467.000000, 0.000000);
    TextDrawSetSelectable(Textdraw0, 0);
    Textdraw1 = TextDrawCreate(618.000000, 378.000000, "_");
    TextDrawBackgroundColor(Textdraw1, 255);
    TextDrawFont(Textdraw1, 1);
    TextDrawLetterSize(Textdraw1, 0.539999, 1.000000);
    TextDrawColor(Textdraw1, -1);
    TextDrawSetOutline(Textdraw1, 0);
    TextDrawSetProportional(Textdraw1, 0);
    TextDrawSetShadow(Textdraw1, 1);
    TextDrawUseBox(Textdraw1, 1);
    TextDrawBoxColor(Textdraw1, 170);
    TextDrawTextSize(Textdraw1, 467.000000, 2.000000);
    TextDrawSetSelectable(Textdraw1, 0);
    Textdraw2 = TextDrawCreate(618.000000, 362.000000, "_");
    TextDrawBackgroundColor(Textdraw2, 255);
    TextDrawFont(Textdraw2, 1);
    TextDrawLetterSize(Textdraw2, 0.539999, 1.000000);
    TextDrawColor(Textdraw2, -1);
    TextDrawSetOutline(Textdraw2, 0);
    TextDrawSetProportional(Textdraw2, 0);
    TextDrawSetShadow(Textdraw2, 1);
    TextDrawUseBox(Textdraw2, 1);
    TextDrawBoxColor(Textdraw2, 170);
    TextDrawTextSize(Textdraw2, 467.000000, 0.000000);
    TextDrawSetSelectable(Textdraw2, 0);
    Textdraw4 = TextDrawCreate(470.000000, 361.000000, "Km/h:");
    TextDrawBackgroundColor(Textdraw4, 255);
    TextDrawFont(Textdraw4, 1);
    TextDrawLetterSize(Textdraw4, 0.500000, 1.000000);
    TextDrawColor(Textdraw4, -1);
    TextDrawSetOutline(Textdraw4, 0);
    TextDrawSetProportional(Textdraw4, 1);
    TextDrawSetShadow(Textdraw4, 1);
    TextDrawSetSelectable(Textdraw4, 0);
    new Float:health,string[128],vehicleid;
    floatround(Float:health,floatround_round);
    vehicleid=GetPlayerVehicleID(playerid);
    GetVehicleHealth(vehicleid,health);
    format(string,sizeof(string),"Zustand: %2.f%",health);
    Textdraw5 = TextDrawCreate(470.000000, 377.000000, string);
    TextDrawBackgroundColor(Textdraw5, 255);
    TextDrawFont(Textdraw5, 1);
    TextDrawLetterSize(Textdraw5, 0.500000, 1.000000);
    TextDrawColor(Textdraw5, -1);
    TextDrawSetOutline(Textdraw5, 0);
    TextDrawSetProportional(Textdraw5, 1);
    TextDrawSetShadow(Textdraw5, 1);
    TextDrawSetSelectable(Textdraw5, 0);
    TextDrawShowForPlayer(playerid, Textdraw0);
    TextDrawShowForPlayer(playerid, Textdraw1);
    TextDrawShowForPlayer(playerid, Textdraw2);
    TextDrawShowForPlayer(playerid, Textdraw4);
    TextDrawShowForPlayer(playerid, Textdraw5);
    }
    if(newstate == PLAYER_STATE_ONFOOT)
    {
    TextDrawHideForAll(Textdraw0);
    TextDrawDestroy(Textdraw0);
    TextDrawHideForAll(Textdraw1);
    TextDrawDestroy(Textdraw1);
    TextDrawHideForAll(Textdraw2);
    TextDrawDestroy(Textdraw2);
    TextDrawHideForAll(Textdraw4);
    TextDrawDestroy(Textdraw4);
    TextDrawHideForAll(Textdraw5);
    TextDrawDestroy(Textdraw5);
    }
    return 1;
    }

    Hi ich habe mich an einem Tacho versucht der folgende funktionen hat; ModelID,Zustand,KMH


    Ich habe ein Prob mit der Abfrage des Zustands habs so gemacht aber es steht da ca 1.0000000


    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    if(newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER)
    {
    Textdraw0 = TextDrawCreate(618.000000, 346.000000, "_");
    TextDrawBackgroundColor(Textdraw0, 255);
    TextDrawFont(Textdraw0, 1);
    TextDrawLetterSize(Textdraw0, 0.539999, 1.000000);
    TextDrawColor(Textdraw0, -1);
    TextDrawSetOutline(Textdraw0, 0);
    TextDrawSetProportional(Textdraw0, 0);
    TextDrawSetShadow(Textdraw0, 1);
    TextDrawUseBox(Textdraw0, 1);
    TextDrawBoxColor(Textdraw0, 170);
    TextDrawTextSize(Textdraw0, 467.000000, 0.000000);
    TextDrawSetSelectable(Textdraw0, 0);
    Textdraw1 = TextDrawCreate(618.000000, 378.000000, "_");
    TextDrawBackgroundColor(Textdraw1, 255);
    TextDrawFont(Textdraw1, 1);
    TextDrawLetterSize(Textdraw1, 0.539999, 1.000000);
    TextDrawColor(Textdraw1, -1);
    TextDrawSetOutline(Textdraw1, 0);
    TextDrawSetProportional(Textdraw1, 0);
    TextDrawSetShadow(Textdraw1, 1);
    TextDrawUseBox(Textdraw1, 1);
    TextDrawBoxColor(Textdraw1, 170);
    TextDrawTextSize(Textdraw1, 467.000000, 2.000000);
    TextDrawSetSelectable(Textdraw1, 0);
    Textdraw2 = TextDrawCreate(618.000000, 362.000000, "_");
    TextDrawBackgroundColor(Textdraw2, 255);
    TextDrawFont(Textdraw2, 1);
    TextDrawLetterSize(Textdraw2, 0.539999, 1.000000);
    TextDrawColor(Textdraw2, -1);
    TextDrawSetOutline(Textdraw2, 0);
    TextDrawSetProportional(Textdraw2, 0);
    TextDrawSetShadow(Textdraw2, 1);
    TextDrawUseBox(Textdraw2, 1);
    TextDrawBoxColor(Textdraw2, 170);
    TextDrawTextSize(Textdraw2, 467.000000, 0.000000);
    TextDrawSetSelectable(Textdraw2, 0);
    Textdraw4 = TextDrawCreate(470.000000, 361.000000, "Km/h:");
    TextDrawBackgroundColor(Textdraw4, 255);
    TextDrawFont(Textdraw4, 1);
    TextDrawLetterSize(Textdraw4, 0.500000, 1.000000);
    TextDrawColor(Textdraw4, -1);
    TextDrawSetOutline(Textdraw4, 0);
    TextDrawSetProportional(Textdraw4, 1);
    TextDrawSetShadow(Textdraw4, 1);
    TextDrawSetSelectable(Textdraw4, 0);
    new Float:health,string[128],vehicleid;
    vehicleid=GetPlayerVehicleID(playerid);
    health=GetVehicleHealth(vehicleid,health);
    format(string,sizeof(string),"Zustand: %0f%",health);
    Textdraw5 = TextDrawCreate(470.000000, 377.000000, string);
    TextDrawBackgroundColor(Textdraw5, 255);
    TextDrawFont(Textdraw5, 1);
    TextDrawLetterSize(Textdraw5, 0.500000, 1.000000);
    TextDrawColor(Textdraw5, -1);
    TextDrawSetOutline(Textdraw5, 0);
    TextDrawSetProportional(Textdraw5, 1);
    TextDrawSetShadow(Textdraw5, 1);
    TextDrawSetSelectable(Textdraw5, 0);
    TextDrawShowForPlayer(playerid, Textdraw0);
    TextDrawShowForPlayer(playerid, Textdraw1);
    TextDrawShowForPlayer(playerid, Textdraw2);
    TextDrawShowForPlayer(playerid, Textdraw4);
    TextDrawShowForPlayer(playerid, Textdraw5);
    }
    if(newstate == PLAYER_STATE_ONFOOT)
    {
    TextDrawHideForAll(Textdraw0);
    TextDrawDestroy(Textdraw0);
    TextDrawHideForAll(Textdraw1);
    TextDrawDestroy(Textdraw1);
    TextDrawHideForAll(Textdraw2);
    TextDrawDestroy(Textdraw2);
    TextDrawHideForAll(Textdraw4);
    TextDrawDestroy(Textdraw4);
    TextDrawHideForAll(Textdraw5);
    TextDrawDestroy(Textdraw5);
    }
    return 1;
    }

    Wenn ich /achat mache und z.b /achat hallo schreibe kommt ((Admin Ralf: 72)) was läuft da falsch? Und wie mache ich dass Admin der Adminrang also wenn der Rang auf 1 iat kommt T-Supporter auf 2 Supporter auf 3 Admin auf 4 H-Admin auf 5 Owner.



    ocmd:achat(playerid,params[])
    {
    new String[164],Text;
    if(!IstSpielerAdmin(playerid,1)) return SendClientMessage(playerid,Rot,"Du bist nicht berechtigt!");
    if(sscanf(params,"s",Text))return SendClientMessage(playerid,Orange,"Benutzung: /achat [Text]");
    format(String,sizeof(String),"(( Admin %s: %d))",SpielerName(playerid),Text);
    SendClientMessageToAll(Orange,String);
    return 1;
    }

    Abend ich hab nen Dialog gemacht wo man sich als ballas mitglied umzihen kann bekomme aber z.b beim Leader nicht die id 104 sondern nen anderen was hab ich falsch gemacht? Ich bekomme die Id 102
    ocmd:skin(playerid,params[])
    {
    if(IsPlayerInRangeOfPoint(playerid,5,2451.5903,-1691.4426,1013.5078))
    {
    if(IstSpielerInFraktion(playerid, 10))
    {
    ShowPlayerDialog(playerid,Vagosskinns,DIALOG_STYLE_LIST,"SKINS", "Leaderskin\nColeadeaderskin\nAusbilderskin=Memberskin", "Anziehen", "Abbrechen");
    }
    }
    if(IsPlayerInRangeOfPoint(playerid,5,2499.5906,-1707.7125,1014.7422))
    {
    if(IstSpielerInFraktion(playerid, 8))
    {
    ShowPlayerDialog(playerid,Groveskinns,DIALOG_STYLE_LIST,"SKINS", "Leaderskin\nColeaderskin\nAusbilderskin\nMemberskin", "Anziehen", "Abbrechen");
    }
    }
    if(IsPlayerInRangeOfPoint(playerid,5,-683.9365,939.8076,13.6328))
    {
    if(IstSpielerInFraktion(playerid, 13))
    {
    ShowPlayerDialog(playerid,Sindaccosskin,DIALOG_STYLE_LIST,"SKINS", "Leaderskin\nColeaderskin\nAusbilderskin\nMemberskin", "Anziehen", "Abbrechen");
    }
    }
    if(IsPlayerInRangeOfPoint(playerid,5,-2032.6844,-116.7656,1035.1719))
    {
    if(IstSpielerInFraktion(playerid, 6))
    {
    ShowPlayerDialog(playerid,FsSkins,DIALOG_STYLE_LIST,"Skins","Leaderskin\nCo-Leaderskin\nAusbilderskin\nMemberskins","Anziehen","Abbrechen");
    }
    }
    if(IsPlayerInRangeOfPoint(playerid,5,1721.5629,-1672.5396,20.2235))
    {
    if(IstSpielerInFraktion(playerid,4))
    {
    ShowPlayerDialog(playerid,NewsSkins,DIALOG_STYLE_LIST,"Skins","Leaderskin\nCo-Leaderskin\nAusbilderskin\nMemberskins","Anziehen","Abbrechen");
    }
    }
    if(IsPlayerInRangeOfPoint(playerid,5,2332.6106,-1143.5964,1054.2969))
    {
    if(IstSpielerInFraktion(playerid,12))
    {
    ShowPlayerDialog(playerid,SF_Rifa_Skins,DIALOG_STYLE_LIST,"Skins","Leaderskin\nCo-Leaderskin\nAusbilderskin\nMemberskin","Anziehen","Abbrechen");
    }
    } // hier fängt der Ballas dialog an
    if(IsPlayerInRangeOfPoint(playerid,5,324.1674,1131.2411,1083.8828))
    {
    if(IstSpielerInFraktion(playerid,9))
    {
    ShowPlayerDialog(playerid,Ballas_Skins,DIALOG_STYLE_LIST,"Skins","Leaderskin\nCo-Leaderskin\nAusbilderskin\nMemberskins","Anziehen","Abbrechen");
    }
    }
    return 1;
    }
    if(dialogid == Ballas_Skins)
    {
    if(response)
    {
    if(listitem == 0)
    {
    SetPlayerSkin(playerid,104);
    }
    if(listitem == 1)
    {
    SetPlayerSkin(playerid,104);
    }
    if(listitem == 2)
    {
    SetPlayerSkin(playerid,21);
    }
    if(listitem == 3)
    {
    ShowPlayerDialog(playerid,Dialog_Memberskins_Ballas,DIALOG_STYLE_LIST,"Memberskins","Memberskin1\nMemberskin2","Anziehen","Abbrechen");
    }
    }
    }
    if(dialogid == Dialog_Memberskins_Ballas)
    {
    if(response)
    {
    if(listitem == 0)
    {
    SetPlayerSkin(playerid,102);
    }
    if(listitem == 1)
    {
    SetPlayerSkin(playerid,103);
    }
    }
    }

    Ich habe neulich ein Hallenderbyevent gemacht und der pickup davon erstellt nur wenn ich /event mache usw... ich hab mir grad so nix gedacht ging in die Fahrschule und wollte meinen Skin anziehen da ist ein Pickup und aufeinmal setzt es mich ins event wie ist das mögl...?



    Lange Geschichte kurzer sinn - wenn ich in der Fahrschulwe in den Skin Pickup gehe spawne ich im Event obwohl ich keins gestartet hab und ich ins falsche pickup gelaufen bin.
    Der fahrschul Pickup
    CreateDynamicPickup(1275,1,-2032.6844,-116.7656,1035.1719);//Fahrschul Skins
    CreateDynamicPickup(1275,1,1721.5629,-1672.5396,20.2235);//Feuerwehr skins
    new EventPickup;
    new EventCar[15];


    Das Event
    ocmd:event(playerid,params[])
    {
    if(!IstSpielerAdmin(playerid,3)) return SendClientMessage(playerid,Rot,"Du darfst das nicht!");
    ShowPlayerDialog(playerid,EVENT_Dialog,DIALOG_STYLE_LIST,"Eventauswahl","Derbyevent (Hallendeby)\nDerbyevent (Grubenderby)","Starten","Abbrechen");
    return 1;
    }
    if(dialogid == EVENT_Dialog)
    {
    if(response)
    {
    if(listitem == 0)
    {
    ShowPlayerDialog(playerid,Dialog_Fahrzeuge_Derby,DIALOG_STYLE_LIST,"Fahrzeugwahl","Hotring RacerA\nHotring RacerB\nTourismo\nSandKing\nWasserwerfer","Starten","Abbrechen");
    }
    if(listitem == 1)
    {
    new string[164];
    format(string,sizeof(string),"Der Event Leiter ist %s. Bei Fragen wendet euch an ihn!",SpielerName(playerid));
    SendClientMessageToAll(Gelb,"=================Event====================");
    SendClientMessageToAll(Orange,"Wir veranstalten ein GrubenDerby!");
    SendClientMessageToAll(Orange,"Bitte kommt mit Privatcars!");
    SendClientMessageToAll(Orange,"Boote, Helis, Fraktcars, Zweiräder, sowie alle gepanzerten Fahrzeuge sind verboten!");
    SendClientMessageToAll(Orange,"Es wurde ein Eventmarker gesetzt!");
    SendClientMessageToAll(Orange,string);
    SendClientMessage(playerid,Gruen,"Du hast das Grubenderby gestartet!");
    for(new i = 0; i < GetMaxPlayers(); i++)
    {
    SetPlayerMapIcon(i,77,-1697.0339,57.6162,3.2617,19,0,MAPICON_GLOBAL);
    }
    }
    }
    }
    if(dialogid == Dialog_Fahrzeuge_Derby){
    switch(listitem){
    case 0:
    {
    SendClientMessageToAll(Gelb,"=================Event====================");
    SendClientMessageToAll(Orange,"Wir veranstalten ein Hallenderby");
    SendClientMessageToAll(Orange,"Es wurde ein Eventmarker gesetzt!");
    SendClientMessageToAll(Orange,"Die Fahrzeuge werden gestellt!");
    for(new i = 0; i < GetMaxPlayers(); i++)
    {
    SetPlayerMapIcon(i,77,-2109.6633,-445.7775,38.7344,19,0,MAPICON_GLOBAL);
    }
    EventPickup=CreatePickup(1559,1,-2109.6633,-445.7775,38.7344,0);
    EventCar[1]=CreateVehicle(494, -1362.8175, 979.4172, 1023.4709, 5.6168, -1, -1, 100);
    EventCar[2]=CreateVehicle(494, -1366.7455, 979.1402, 1023.4709, 3.6039, -1, -1, 100);
    EventCar[3]=CreateVehicle(494, -1370.8566, 978.9802, 1023.4709, 3.5568, -1, -1, 100);
    EventCar[4]=CreateVehicle(494, -1374.6182, 978.6675, 1023.4709, 3.6168, -1, -1, 100);
    EventCar[5]=CreateVehicle(494, -1379.2742, 978.1277, 1023.4709, 3.4839, -1, -1, 100);
    EventCar[6]=CreateVehicle(494, -1383.2332, 978.0792, 1023.4709, 3.7330, -1, -1, 100);
    EventCar[7]=CreateVehicle(494, -1383.9534, 984.2579, 1023.6709, 3.8522, -1, -1, 100);
    EventCar[8]=CreateVehicle(494, -1380.3071, 984.4999, 1023.6709, 3.2208, -1, -1, 100);
    EventCar[9]=CreateVehicle(494, -1375.4861, 984.8995, 1023.6709, 3.8026, -1, -1, 100);
    EventCar[10]=CreateVehicle(494, -1371.1536, 985.2707, 1023.6709, 4.0362, -1, -1, 100);
    EventCar[11]=CreateVehicle(494, -1367.2527, 985.5884, 1023.6709, 4.9076, -1, -1, 100);
    EventCar[12]=CreateVehicle(494, -1363.4469, 985.9000, 1023.6709, 4.8193, -1, -1, 100);
    EventCar[13]=CreateVehicle(494, -1359.1084, 979.6376, 1023.6709, 4.7251, -1, -1, 100);
    EventCar[14]=CreateVehicle(494, -1359.6619, 986.0725, 1023.6709, 4.8843, -1, -1, 100);
    LinkVehicleToInterior(EventCar[1],15),LinkVehicleToInterior(EventCar[6],15),LinkVehicleToInterior(EventCar[11],15);
    LinkVehicleToInterior(EventCar[2],15),LinkVehicleToInterior(EventCar[7],15),LinkVehicleToInterior(EventCar[12],15);
    LinkVehicleToInterior(EventCar[3],15),LinkVehicleToInterior(EventCar[8],15),LinkVehicleToInterior(EventCar[13],15);
    LinkVehicleToInterior(EventCar[4],15),LinkVehicleToInterior(EventCar[9],15),LinkVehicleToInterior(EventCar[14],15);
    LinkVehicleToInterior(EventCar[5],15),LinkVehicleToInterior(EventCar[10],15);
    }
    case 1:
    {
    SendClientMessageToAll(Gelb,"=================Event====================");
    SendClientMessageToAll(Orange,"Wir veranstalten ein Hallenderby");
    SendClientMessageToAll(Orange,"Es wurde ein Eventmarker gesetzt!");
    SendClientMessageToAll(Orange,"Die Fahrzeuge werden gestellt!");
    for(new i = 0; i < GetMaxPlayers(); i++)
    {
    SetPlayerMapIcon(i,77,-2109.6633,-445.7775,38.7344,19,0,MAPICON_GLOBAL);
    }
    EventPickup=CreatePickup(1559,1,-2109.6633,-445.7775,38.7344,0);
    EventCar[1]=CreateVehicle(503, -1362.8175, 979.4172, 1023.4709, 5.6168, -1, -1, 100);
    EventCar[2]=CreateVehicle(503, -1366.7455, 979.1402, 1023.4709, 3.6039, -1, -1, 100);
    EventCar[3]=CreateVehicle(503, -1370.8566, 978.9802, 1023.4709, 3.5568, -1, -1, 100);
    EventCar[4]=CreateVehicle(503, -1374.6182, 978.6675, 1023.4709, 3.6168, -1, -1, 100);
    EventCar[5]=CreateVehicle(503, -1379.2742, 978.1277, 1023.4709, 3.4839, -1, -1, 100);
    EventCar[6]=CreateVehicle(503, -1383.2332, 978.0792, 1023.4709, 3.7330, -1, -1, 100);
    EventCar[7]=CreateVehicle(503, -1383.9534, 984.2579, 1023.6709, 3.8522, -1, -1, 100);
    EventCar[8]=CreateVehicle(503, -1380.3071, 984.4999, 1023.6709, 3.2208, -1, -1, 100);
    EventCar[9]=CreateVehicle(503, -1375.4861, 984.8995, 1023.6709, 3.8026, -1, -1, 100);
    EventCar[10]=CreateVehicle(503, -1371.1536, 985.2707, 1023.6709, 4.0362, -1, -1, 100);
    EventCar[11]=CreateVehicle(503, -1367.2527, 985.5884, 1023.6709, 4.9076, -1, -1, 100);
    EventCar[12]=CreateVehicle(503, -1363.4469, 985.9000, 1023.6709, 4.8193, -1, -1, 100);
    EventCar[13]=CreateVehicle(503, -1359.1084, 979.6376, 1023.6709, 4.7251, -1, -1, 100);
    EventCar[14]=CreateVehicle(503, -1359.6619, 986.0725, 1023.6709, 4.8843, -1, -1, 100);
    LinkVehicleToInterior(EventCar[1],15),LinkVehicleToInterior(EventCar[6],15),LinkVehicleToInterior(EventCar[11],15);
    LinkVehicleToInterior(EventCar[2],15),LinkVehicleToInterior(EventCar[7],15),LinkVehicleToInterior(EventCar[12],15);
    LinkVehicleToInterior(EventCar[3],15),LinkVehicleToInterior(EventCar[8],15),LinkVehicleToInterior(EventCar[13],15);
    LinkVehicleToInterior(EventCar[4],15),LinkVehicleToInterior(EventCar[9],15),LinkVehicleToInterior(EventCar[14],15);
    LinkVehicleToInterior(EventCar[5],15),LinkVehicleToInterior(EventCar[10],15);
    }
    case 2:
    {
    SendClientMessageToAll(Gelb,"=================Event====================");
    SendClientMessageToAll(Orange,"Wir veranstalten ein Hallenderby");
    SendClientMessageToAll(Orange,"Es wurde ein Eventmarker gesetzt!");
    SendClientMessageToAll(Orange,"Die Fahrzeuge werden gestellt!");
    for(new i = 0; i < GetMaxPlayers(); i++)
    {
    SetPlayerMapIcon(i,77,-2109.6633,-445.7775,38.7344,19,0,MAPICON_GLOBAL);
    }
    EventPickup=CreatePickup(1559,1,-2109.6633,-445.7775,38.7344,0);
    EventCar[1]=CreateVehicle(451, -1362.8175, 979.4172, 1023.4709, 5.6168, -1, -1, 100);
    EventCar[2]=CreateVehicle(451, -1366.7455, 979.1402, 1023.4709, 3.6039, -1, -1, 100);
    EventCar[3]=CreateVehicle(451, -1370.8566, 978.9802, 1023.4709, 3.5568, -1, -1, 100);
    EventCar[4]=CreateVehicle(451, -1374.6182, 978.6675, 1023.4709, 3.6168, -1, -1, 100);
    EventCar[5]=CreateVehicle(451, -1379.2742, 978.1277, 1023.4709, 3.4839, -1, -1, 100);
    EventCar[6]=CreateVehicle(451, -1383.2332, 978.0792, 1023.4709, 3.7330, -1, -1, 100);
    EventCar[7]=CreateVehicle(451, -1383.9534, 984.2579, 1023.6709, 3.8522, -1, -1, 100);
    EventCar[8]=CreateVehicle(451, -1380.3071, 984.4999, 1023.6709, 3.2208, -1, -1, 100);
    EventCar[9]=CreateVehicle(451, -1375.4861, 984.8995, 1023.6709, 3.8026, -1, -1, 100);
    EventCar[10]=CreateVehicle(451, -1371.1536, 985.2707, 1023.6709, 4.0362, -1, -1, 100);
    EventCar[11]=CreateVehicle(451, -1367.2527, 985.5884, 1023.6709, 4.9076, -1, -1, 100);
    EventCar[12]=CreateVehicle(451, -1363.4469, 985.9000, 1023.6709, 4.8193, -1, -1, 100);
    EventCar[13]=CreateVehicle(451, -1359.1084, 979.6376, 1023.6709, 4.7251, -1, -1, 100);
    EventCar[14]=CreateVehicle(451, -1359.6619, 986.0725, 1023.6709, 4.8843, -1, -1, 100);
    LinkVehicleToInterior(EventCar[1],15),LinkVehicleToInterior(EventCar[6],15),LinkVehicleToInterior(EventCar[11],15);
    LinkVehicleToInterior(EventCar[2],15),LinkVehicleToInterior(EventCar[7],15),LinkVehicleToInterior(EventCar[12],15);
    LinkVehicleToInterior(EventCar[3],15),LinkVehicleToInterior(EventCar[8],15),LinkVehicleToInterior(EventCar[13],15);
    LinkVehicleToInterior(EventCar[4],15),LinkVehicleToInterior(EventCar[9],15),LinkVehicleToInterior(EventCar[14],15);
    LinkVehicleToInterior(EventCar[5],15),LinkVehicleToInterior(EventCar[10],15);
    }
    case 3:
    {
    SendClientMessageToAll(Gelb,"=================Event====================");
    SendClientMessageToAll(Orange,"Wir veranstalten ein Hallenderby");
    SendClientMessageToAll(Orange,"Es wurde ein Eventmarker gesetzt!");
    SendClientMessageToAll(Orange,"Die Fahrzeuge werden gestellt!");
    for(new i = 0; i < GetMaxPlayers(); i++)
    {
    SetPlayerMapIcon(i,77,-2109.6633,-445.7775,38.7344,19,0,MAPICON_GLOBAL);
    }
    EventPickup=CreatePickup(1559,1,-2109.6633,-445.7775,38.7344,0);
    EventCar[1]=CreateVehicle(495, -1362.8175, 979.4172, 1023.4709, 5.6168, -1, -1, 100);
    EventCar[2]=CreateVehicle(495, -1366.7455, 979.1402, 1023.4709, 3.6039, -1, -1, 100);
    EventCar[3]=CreateVehicle(495, -1370.8566, 978.9802, 1023.4709, 3.5568, -1, -1, 100);
    EventCar[4]=CreateVehicle(495, -1374.6182, 978.6675, 1023.4709, 3.6168, -1, -1, 100);
    EventCar[5]=CreateVehicle(495, -1379.2742, 978.1277, 1023.4709, 3.4839, -1, -1, 100);
    EventCar[6]=CreateVehicle(495, -1383.2332, 978.0792, 1023.4709, 3.7330, -1, -1, 100);
    EventCar[7]=CreateVehicle(495, -1383.9534, 984.2579, 1023.6709, 3.8522, -1, -1, 100);
    EventCar[8]=CreateVehicle(495, -1380.3071, 984.4999, 1023.6709, 3.2208, -1, -1, 100);
    EventCar[9]=CreateVehicle(495, -1375.4861, 984.8995, 1023.6709, 3.8026, -1, -1, 100);
    EventCar[10]=CreateVehicle(495, -1371.1536, 985.2707, 1023.6709, 4.0362, -1, -1, 100);
    EventCar[11]=CreateVehicle(495, -1367.2527, 985.5884, 1023.6709, 4.9076, -1, -1, 100);
    EventCar[12]=CreateVehicle(495, -1363.4469, 985.9000, 1023.6709, 4.8193, -1, -1, 100);
    EventCar[13]=CreateVehicle(495, -1359.1084, 979.6376, 1023.6709, 4.7251, -1, -1, 100);
    EventCar[14]=CreateVehicle(495, -1359.6619, 986.0725, 1023.6709, 4.8843, -1, -1, 100);
    LinkVehicleToInterior(EventCar[1],15),LinkVehicleToInterior(EventCar[6],15),LinkVehicleToInterior(EventCar[11],15);
    LinkVehicleToInterior(EventCar[2],15),LinkVehicleToInterior(EventCar[7],15),LinkVehicleToInterior(EventCar[12],15);
    LinkVehicleToInterior(EventCar[3],15),LinkVehicleToInterior(EventCar[8],15),LinkVehicleToInterior(EventCar[13],15);
    LinkVehicleToInterior(EventCar[4],15),LinkVehicleToInterior(EventCar[9],15),LinkVehicleToInterior(EventCar[14],15);
    LinkVehicleToInterior(EventCar[5],15),LinkVehicleToInterior(EventCar[10],15);
    }
    case 4:
    {
    SendClientMessageToAll(Gelb,"=================Event====================");
    SendClientMessageToAll(Orange,"Wir veranstalten ein Hallenderby");
    SendClientMessageToAll(Orange,"Es wurde ein Eventmarker gesetzt!");
    SendClientMessageToAll(Orange,"Die Fahrzeuge werden gestellt!");
    for(new i = 0; i < GetMaxPlayers(); i++)
    {
    SetPlayerMapIcon(i,77,-2109.6633,-445.7775,38.7344,19,0,MAPICON_GLOBAL);
    }
    EventPickup=CreatePickup(1559,1,-2109.6633,-445.7775,38.7344,0);
    EventCar[1]=CreateVehicle(601, -1362.8175, 979.4172, 1023.4709, 5.6168, -1, -1, 100);
    EventCar[2]=CreateVehicle(601, -1366.7455, 979.1402, 1023.4709, 3.6039, -1, -1, 100);
    EventCar[3]=CreateVehicle(601, -1370.8566, 978.9802, 1023.4709, 3.5568, -1, -1, 100);
    EventCar[4]=CreateVehicle(601, -1374.6182, 978.6675, 1023.4709, 3.6168, -1, -1, 100);
    EventCar[5]=CreateVehicle(601, -1379.2742, 978.1277, 1023.4709, 3.4839, -1, -1, 100);
    EventCar[6]=CreateVehicle(601, -1383.2332, 978.0792, 1023.4709, 3.7330, -1, -1, 100);
    EventCar[7]=CreateVehicle(601, -1383.9534, 984.2579, 1023.6709, 3.8522, -1, -1, 100);
    EventCar[8]=CreateVehicle(601, -1380.3071, 984.4999, 1023.6709, 3.2208, -1, -1, 100);
    EventCar[9]=CreateVehicle(601, -1375.4861, 984.8995, 1023.6709, 3.8026, -1, -1, 100);
    EventCar[10]=CreateVehicle(601, -1371.1536, 985.2707, 1023.6709, 4.0362, -1, -1, 100);
    EventCar[11]=CreateVehicle(601, -1367.2527, 985.5884, 1023.6709, 4.9076, -1, -1, 100);
    EventCar[12]=CreateVehicle(601, -1363.4469, 985.9000, 1023.6709, 4.8193, -1, -1, 100);
    EventCar[13]=CreateVehicle(601, -1359.1084, 979.6376, 1023.6709, 4.7251, -1, -1, 100);
    EventCar[14]=CreateVehicle(601, -1359.6619, 986.0725, 1023.6709, 4.8843, -1, -1, 100);
    LinkVehicleToInterior(EventCar[1],15),LinkVehicleToInterior(EventCar[6],15),LinkVehicleToInterior(EventCar[11],15);
    LinkVehicleToInterior(EventCar[2],15),LinkVehicleToInterior(EventCar[7],15),LinkVehicleToInterior(EventCar[12],15);
    LinkVehicleToInterior(EventCar[3],15),LinkVehicleToInterior(EventCar[8],15),LinkVehicleToInterior(EventCar[13],15);
    LinkVehicleToInterior(EventCar[4],15),LinkVehicleToInterior(EventCar[9],15),LinkVehicleToInterior(EventCar[14],15);
    LinkVehicleToInterior(EventCar[5],15),LinkVehicleToInterior(EventCar[10],15);
    }
    }
    }


    //onplayerPickuppickup
    if(pickupid == EventPickup)
    {
    SpielerImEvent[playerid] = 1;
    SetPlayerPos(playerid,-1394.3094,979.4738,1023.8345);
    SetPlayerInterior(playerid,15);
    SetCameraBehindPlayer(playerid);
    }


    //edit die feuerwehr Skins buggen auch(machen das selbe

    Hab ein Warning

    C:\Users\Ralf\Desktop\Samp o.3x Server\gamemodes\GRSA-Script.pwn(6056) : warning 219: local variable "i" shadows a variable at a preceding level
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Warning.




    ocmd:eventende(playerid)
    {
    new string[164];
    format(string,sizeof(string),"%s hat das Event gelöscht!",SpielerName(playerid));
    SendClientMessageToAll(Orange,string);
    DestroyPickup(EventPickup);
    DestroyVehicle(EventCar[1]),DestroyVehicle(EventCar[6]),DestroyVehicle(EventCar[11]);
    DestroyVehicle(EventCar[2]),DestroyVehicle(EventCar[7]),DestroyVehicle(EventCar[12]);
    DestroyVehicle(EventCar[3]),DestroyVehicle(EventCar[8]),DestroyVehicle(EventCar[13]);
    DestroyVehicle(EventCar[4]),DestroyVehicle(EventCar[9]),DestroyVehicle(EventCar[14]);
    DestroyVehicle(EventCar[5]),DestroyVehicle(EventCar[10]);
    for(new i=0; i<MAX_PLAYERS; i++){
    if(SpielerImEvent[i] == 1){
    SpawnPlayer(i);
    SetPlayerVirtualWorld(i,0);
    SetPlayerInterior(i,0);
    SendClientMessage(i,Gruen,"Du wurdest neu gespawnt!");
    }
    for(new i=0; i<MAX_PLAYERS; i++){ //hier ist der Warning
    RemovePlayerMapIcon(i,77);
    }
    }
    return 1;
    }