Beiträge von Kollho

    So geht es trotzdem nicht die Fehler bleiben:


    ocmd:startrunde(playerid,parans[])
    {
    SetPlayerCheckpoint(playerid,2046.4950,1303.9047,10.6719, 5.0);
    return 1;
    }


    public OnPlayerEnterCheckpoint(playerid) {
    if(Checkpoint[playerid] == 1)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,2060.4950,1303.9047,10.6719, 5.0);
    Checkpoint[playerid] == 2;
    }


    else if (Checkpoint[playerid] == 2)
    {
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,2060.4950,1350.9047,14.6719, 5.0);
    }

    Hallo,


    Ich und mein Kumpel arbeiten an einem Selfmade Script,
    nun ich arbeite gerade an dem ersten Job "Limo Fahrer" und bekomme bei folgendem Code:
    http://pastebin.com/rwpPunf9


    Folgende Fehler:

    Spoiler anzeigen

    C:\Users\Tobias\Desktop\Selfmade\gamemodes\bare.pwn(200) : error 029: invalid expression, assumed zero
    C:\Users\Tobias\Desktop\Selfmade\gamemodes\bare.pwn(200) : warning 215: expression has no effect
    C:\Users\Tobias\Desktop\Selfmade\gamemodes\bare.pwn(200) : error 001: expected token: ";", but found "]"
    C:\Users\Tobias\Desktop\Selfmade\gamemodes\bare.pwn(200) : error 029: invalid expression, assumed zero
    C:\Users\Tobias\Desktop\Selfmade\gamemodes\bare.pwn(200) : fatal error 107: too many error messages on one line

    Spoiler anzeigen
    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

    Spoiler anzeigen
    4 Errors.


    Was habe ich hier falsch gemacht?.


    LG

    Hallo,


    Ich hab hier eine frage zu dem PRP Script, und zwar wo finde ich den Dealer in Los Santos?
    Ich Spiele auf dem Server und möchte jetzt mal Kokain anbauen, die Admins auf dem Helfen mir da auch nicht nun dachte ich,
    ich frage hier mal...


    Ich hoffe ihr könnt mir Helfen :)


    LG

    Hallo ich erstelle gerade mittels AutoHotkey einen Payday Zähler nun wenn ich das ganze Starten will kommt so ein Fehler:
    Unbenannt.png


    Was habe ich falsch gemacht?
    Hier der Code für das ganze:

    Spoiler anzeigen

    :?:/payday::
    fullchat := ""
    loop, 50
    {
    GetChatLine(A_Index-1, chat)
    fullchat := chat fullchat
    }
    RegExMatch(fullchat, "U)Lohn: (.+)\$\s+Miete: (.+)\$\s+Lohnsteuer: (.+)\$.*KFZ Steuer: (.+)\$.", chat)
    AddChatMessage(0xFFFFFF, "{AEFF00}Payday Gehalt:{FFFFFF} " chat1+chat2+chat3+chat4+chat5 "$")
    fullchat := ""return

    So das ist mal der ganze Befehl:
    COMMAND:reports(playerid,params[]){ #pragma unused params if(ImTutorial[playerid] != 0)return SendClientMessage(playerid,GRAU,"Du kannst keine Befehle nutzen,da du im Tutorial bist."); if(GetPVarInt(playerid,"Eingeloggt") == 0)return SendClientMessage(playerid,GRAU,"Du bist nicht eingeloggt!"); if(Spieler[playerid][pAWAYFROMKEYBOARD] == 1)return SendClientMessage(playerid,WRONGCMD,"Du bist im AFK-Modus und kannst somit keine Befehle nutzen."),SendClientMessage(playerid,WRONGCMD,"BENUTZE: /back"); if(!isPlayerAnAdmin(playerid,1))return SendClientMessage(playerid,GRAU,"Du bist kein "#SERVERTAG" Teammitglied./Du hast nicht den jeweiligen Adminrang."); if(Spieler[playerid][pAtReport] != 0)return SendClientMessage(playerid,GRAU,"Du bist bereits in einem Report aktiv."); if(Spieler[playerid][AmUmkleiden] != 0)return 1; for(new sm=1;sm<MAX_SMARKETS;sm++) { if(SmarkInfo[sm][screatet] == 1) { for(new i=0;i<sizeof(sBuyInfo);i++) { if(IsPlayerInRangeOfPoint(playerid,25.0,sBuyInfo[i][sbuyx],sBuyInfo[i][sbuyy],sBuyInfo[i][sbuyz]) && GetPlayerVirtualWorld(playerid) == sm) { switch(Spieler[playerid][pAdmin]) { case 1: { TextDrawShowForPlayer(playerid,Reportdraw[0]); TextDrawShowForPlayer(playerid,Reportdraw[1]); } case 2,3,4: { TextDrawShowForPlayer(playerid,Reportdraw[0]); TextDrawShowForPlayer(playerid,Reportdraw[1]); TextDrawShowForPlayer(playerid,Reportdraw[2]); } case 5,6,7: { for(new ir=0;ir<sizeof(Reportdraw);ir++) { TextDrawShowForPlayer(playerid,Reportdraw[ir]); } } } TogglePlayerControllable(playerid,1); PlayerTextDrawHide(playerid,BUYSMARKTWEAPONdraw[playerid][0]); PlayerTextDrawHide(playerid,BUYSMARKTWEAPONdraw[playerid][1]); PlayerTextDrawSetString(playerid,INFOdraw[playerid][0],"~b~Taste N:~n~~w~beliebigen Gegenstand kaufen"); break; } } } } SendClientMessage(playerid,GELB,"Klicke nun eine Reportkategorie an."); SelectTextDraw(playerid,GRAU); return 1;}


    Ich bekomme es nicht hin das es untereinander steht Sry kann es evtl. Ein Team Mitglied machen???.
    @BloodyEric

    Abend,


    Ich habe oder Arbeite gerade an dem Pure Roleplay Script vers. 2.0b.
    Mir ist aufgefallen wen ein Supporter oder Admin /reports macht das dann kein Dialog angezeigt wird. Wenn ich aber auf dem Bildschirm Rumklicke öffnet sich die Kategorie aber
    das ganze ist unsichtbar sprich die Dialoge Fehlen aber im Script steht was von Dialogen aber es wird trotzdem nichts angezeigt. Darauf hin suchte ich im Script Intensiver und suchte den Fehler aber ich fand dazu nichts kennt da jemand das Problem? oder weis jemand an was das liegt?.


    Viele Grüße Kollho

    Hay Breadfish User,


    Auf dem PRP Script gibt es ja einen HomeStore ich suche ihn schon Länger nur ich finde ihn net kann mir jemand sagen Wo der ist?


    Viele Grüße Kollho

    Ist von einem Bekannten der es mir Erlaubt hat mit ins Script zu übernehmen.


    // This is a comment// uncomment the line below if you want to write a filterscript//#define FILTERSCRIPT
    #include <a_samp>
    new sirene[MAX_VEHICLES];new sirene1[MAX_VEHICLES];new sirene2[MAX_VEHICLES];new sirene3[MAX_VEHICLES];new sirene4[MAX_VEHICLES];//new sirene5[MAX_VEHICLES];new UCL[MAX_VEHICLES];// das ist nur wegen der "if" anfrage//new tmpcar;
    #if defined FILTERSCRIPT
    public OnFilterScriptInit()


    public OnFilterScriptExit()


    #endif
    public OnGameModeInit(){ // Don't use these lines if it's a filterscript SetGameModeText("German Reallife"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); return 1;}
    public OnGameModeExit(){ return 1;}
    public OnPlayerRequestClass(playerid, classid){ SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1;}
    public OnPlayerConnect(playerid){ return 1;}
    public OnPlayerDisconnect(playerid, reason){ return 1;}
    public OnPlayerSpawn(playerid){ return 1;}public OnPlayerDeath(playerid, killerid, reason){ return 1;}
    public OnVehicleSpawn(vehicleid){DestroyObject(sirene[vehicleid]);DestroyObject(sirene1[vehicleid]);DestroyObject(sirene2[vehicleid]);DestroyObject(sirene3[vehicleid]);UCL[vehicleid] = 0;//ist wegen der "if" Anfrage beim /command}
    public OnVehicleDeath(vehicleid, killerid){ return 1;}
    public OnPlayerText(playerid, text[]){ return 1;}
    public OnPlayerCommandText(playerid, cmdtext[]){ if(strcmp(cmdtext, "/ucl",true) == 0) { if(UCL[GetPlayerVehicleID(playerid)] == 0){new tmpcar = GetPlayerVehicleID(playerid);if(GetVehicleModel(tmpcar) == 560){ sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100); sirene1[GetPlayerVehicleID(playerid)] = CreateObject(19419,0,0,0,0,0,0,100); sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100); sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100); sirene4[GetPlayerVehicleID(playerid)] = CreateObject(19292,0,0,0,0,0,0,100);AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne MitteAttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.0,0.0,0.85,0,0,0);//Dach sireneAttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht BeifahrerseiteAttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht FahrerseiteAttachObjectToVehicle(sirene4[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0,0.9,0.4,0,0,0);//Mittig im FensterUCL[GetPlayerVehicleID(playerid)] = 1;SendClientMessage(playerid,0xFF0000,"Blaulicht eingeschalten!");return 1;}else if(GetVehicleModel(tmpcar) == 415){sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100); sirene1[GetPlayerVehicleID(playerid)] = CreateObject(19419,0,0,0,0,0,0,100); sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100); sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.0,2.6,0,0,0,0);//Vorne MitteAttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.0,0.0,0.65,0,0,0);//Dach sireneAttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht BeifahrerseiteAttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht FahrerseiteUCL[GetPlayerVehicleID(playerid)] = 1;SendClientMessage(playerid,0xFF0000,"Blaulicht eingeschalten!");return 1;}else if(GetVehicleModel(tmpcar) == 451){sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100); sirene1[GetPlayerVehicleID(playerid)] = CreateObject(19419,0,0,0,0,0,0,100); sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100); sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.0,2.6,0,0,0,0);//Vorne MitteAttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),00.0,0.0,0.6,0,0,0);//Dach sireneAttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht BeifahrerseiteAttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht FahrerseiteUCL[GetPlayerVehicleID(playerid)] = 1;SendClientMessage(playerid,0xFF0000,"Blaulicht eingeschalten!");return 1;}else if(GetVehicleModel(tmpcar) == 541){sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100); sirene1[GetPlayerVehicleID(playerid)] = CreateObject(19419,0,0,0,0,0,0,100); sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100); sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.0,2.6,0,0,0,0);//Vorne MitteAttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.0,0.0,0.65,0,0,0);//Dach sireneAttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht BeifahrerseiteAttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht FahrerseiteUCL[GetPlayerVehicleID(playerid)] = 1;SendClientMessage(playerid,0xFF0000,"Blaulicht eingeschalten!");return 1;}else if(GetVehicleModel(tmpcar) == 470){sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100); sirene1[GetPlayerVehicleID(playerid)] = CreateObject(19419,0,0,0,0,0,0,100); sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100); sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.0,2.6,0,0,0,0);//Vorne MitteAttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.0,0.0,1.1,0,0,0);//Dach sireneAttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht BeifahrerseiteAttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht FahrerseiteUCL[GetPlayerVehicleID(playerid)] = 1;SendClientMessage(playerid,0xFF0000,"Blaulicht eingeschalten!");return 1;}else if(GetVehicleModel(tmpcar) == 421){sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100); sirene1[GetPlayerVehicleID(playerid)] = CreateObject(19419,0,0,0,0,0,0,100); sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100); sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.0,2.6,0,0,0,0);//Vorne MitteAttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.0,0.0,0.72,0,0,0);//Dach sireneAttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht BeifahrerseiteAttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht FahrerseiteUCL[GetPlayerVehicleID(playerid)] = 1;SendClientMessage(playerid,0xFF0000,"Blaulicht eingeschalten!");return 1;}else if(GetVehicleModel(tmpcar) == 405){sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100); sirene1[GetPlayerVehicleID(playerid)] = CreateObject(19419,0,0,0,0,0,0,100); sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100); sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.0,2.6,0,0,0,0);//Vorne MitteAttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.0,0,0.78,0,0,0);//Dach sireneAttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht BeifahrerseiteAttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht FahrerseiteUCL[GetPlayerVehicleID(playerid)] = 1;SendClientMessage(playerid,0xFF0000,"Blaulicht eingeschalten!");return 1;}else if(GetVehicleModel(tmpcar) == 426){sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100); sirene1[GetPlayerVehicleID(playerid)] = CreateObject(19419,0,0,0,0,0,0,100); sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100); sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.0,2.6,0,0,0,0);//Vorne MitteAttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.0,0,0.88,0,0,0);//Dach sireneAttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht BeifahrerseiteAttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht FahrerseiteUCL[GetPlayerVehicleID(playerid)] = 1;SendClientMessage(playerid,0xFF0000,"Blaulicht eingeschalten!");return 1;}else if(GetVehicleModel(tmpcar) == 517){sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100); sirene1[GetPlayerVehicleID(playerid)] = CreateObject(19419,0,0,0,0,0,0,100); sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100); sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.0,2.6,0,0,0,0);//Vorne MitteAttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.0,0,0.85,0,0,0);//Dach sireneAttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht BeifahrerseiteAttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht FahrerseiteUCL[GetPlayerVehicleID(playerid)] = 1;SendClientMessage(playerid,0xFF0000,"Blaulicht eingeschalten!");return 1;}else if(GetVehicleModel(tmpcar) == 598){sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100); sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.0,2.6,0,0,0,0);//Vorne MitteAttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht BeifahrerseiteAttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht FahrerseiteUCL[GetPlayerVehicleID(playerid)] = 1;SendClientMessage(playerid,0xFF0000,"Blaulicht eingeschalten!");return 1;}else if(GetVehicleModel(tmpcar) == 597){sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.0,2.6,0,0,0,0);//Vorne MitteAttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht BeifahrerseiteAttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht FahrerseiteUCL[GetPlayerVehicleID(playerid)] = 1;SendClientMessage(playerid,0xFF0000,"Blaulicht eingeschalten!");return 1;}else if(GetVehicleModel(tmpcar) == 596){sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.0,2.6,0,0,0,0);//Vorne MitteAttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht BeifahrerseiteAttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht FahrerseiteUCL[GetPlayerVehicleID(playerid)] = 1;SendClientMessage(playerid,0xFF0000,"Blaulicht eingeschalten!");return 1;}else if(GetVehicleModel(tmpcar) == 411){sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);sirene1[GetPlayerVehicleID(playerid)] = CreateObject(19419,0,0,0,0,0,0,100);sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.0,2.6,0,0,0,0);//Vorne MitteAttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.0,0.0,0.7,0,0,0);//Dach sireneAttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht BeifahrerseiteAttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht FahrerseiteUCL[GetPlayerVehicleID(playerid)] = 1;SendClientMessage(playerid,0xFF0000,"Blaulicht eingeschalten!");return 1;}else if(GetVehicleModel(tmpcar) == 561){sirene[GetPlayerVehicleID(playerid)] = CreateObject(19419,0,0,0,0,0,0,100);sirene1[GetPlayerVehicleID(playerid)] = CreateObject(19419,0,0,0,0,0,0,100);AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.0,0.0,0.85,0,0,0);//Dach BeifahrerAttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.0,0.0,0.85,0,0,0);//Dach FahrerUCL[GetPlayerVehicleID(playerid)] = 1;SendClientMessage(playerid,0xFF0000,"Blaulicht eingeschalten!");return 1;}}else if(UCL[GetPlayerVehicleID(playerid)] == 1){DestroyObject(sirene[GetPlayerVehicleID(playerid)]);DestroyObject(sirene1[GetPlayerVehicleID(playerid)]);DestroyObject(sirene2[GetPlayerVehicleID(playerid)]);DestroyObject(sirene3[GetPlayerVehicleID(playerid)]);DestroyObject(sirene4[GetPlayerVehicleID(playerid)]);UCL[GetPlayerVehicleID(playerid)] = 0;SendClientMessage(playerid,0xFF0000,"Blaulicht ausgeschalten!");return 1;}}}
    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger){ return 1;}
    public OnPlayerExitVehicle(playerid, vehicleid){ return 1;}
    public OnPlayerStateChange(playerid, newstate, oldstate){ return 1;}
    public OnPlayerEnterCheckpoint(playerid){ return 1;}
    public OnPlayerLeaveCheckpoint(playerid){ return 1;}
    public OnPlayerEnterRaceCheckpoint(playerid){ return 1;}
    public OnPlayerLeaveRaceCheckpoint(playerid){ return 1;}
    public OnRconCommand(cmd[]){ return 1;}
    public OnPlayerRequestSpawn(playerid){ return 1;}
    public OnObjectMoved(objectid){ return 1;}
    public OnPlayerObjectMoved(playerid, objectid){ return 1;}
    public OnPlayerPickUpPickup(playerid, pickupid){ return 1;}
    public OnVehicleMod(playerid, vehicleid, componentid){ return 1;}
    public OnVehiclePaintjob(playerid, vehicleid, paintjobid){ return 1;}
    public OnVehicleRespray(playerid, vehicleid, color1, color2){ return 1;}
    public OnPlayerSelectedMenuRow(playerid, row){ return 1;}
    public OnPlayerExitedMenu(playerid){ return 1;}
    public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid){ return 1;}
    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){ return 1;}
    public OnRconLoginAttempt(ip[], password[], success){ return 1;}
    public OnPlayerUpdate(playerid){ return 1;}
    public OnPlayerStreamIn(playerid, forplayerid){ return 1;}
    public OnPlayerStreamOut(playerid, forplayerid){ return 1;}
    public OnVehicleStreamIn(vehicleid, forplayerid){ return 1;}
    public OnVehicleStreamOut(vehicleid, forplayerid){ return 1;}
    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ return 1;}
    public OnPlayerClickPlayer(playerid, clickedplayerid, source){ return 1;}

    Hallo liebe Breadfish Gemeinde,


    Ich habe folgendes Problem:
    Ich habe den Befehl /ucl und Scripte gerade an den Fraktionen aber nur die Fraktionen sollen es ausführen können Frak Id: 1 (LSPD),2 (FBI),15 (Electric-Service) Befehl ausführen können wie geht das weil bis jetzt kann jeder den Befehl ausführen.
    Ich habe schon Sachen mit OnPlayerComments versucht aber ich bekomme es nicht hin.


    Viele Grüße
    Kollho