Beiträge von Presh

    Guten Tag,
    ich habe folgendes Problem,
    ich gebe /blaulicht ein, kommt ein Text, /blaulicht wurde erstellelt, aber da kommt nichts.



    COMMAND:blaulicht(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(Spieler[playerid][pInPrison] == 1)return SendClientMessage(playerid,GRAU,"Du bist im Prison.");
    if(Spieler[playerid][pFriedhof] == 1)return SendClientMessage(playerid,GRAU,"Du bist Tot.");
    if(Spieler[playerid][pDeath] == 1)return SendClientMessage(playerid,GRAU,"Du bist verletzt.");
    if(Spieler[playerid][pJailed] != 0)return SendClientMessage(playerid,GRAU,"Du bist im Gefängnis.");
    if(Spieler[playerid][pTazerd] == 1)return SendClientMessage(playerid,GRAU,"Du bist K.O/getazert.");
    if(Spieler[playerid][pCuffed] == 1)return SendClientMessage(playerid,GRAU,"Du bist gefesselt.");
    new vehicleid = GetPlayerVehicleID(playerid),fv = IsAFraktionsVeh(playerid);
    if(isPlayerInFrakt(playerid,1) || isPlayerInFrakt(playerid,2) || isPlayerInFrakt(playerid,3) || isPlayerInFrakt(playerid,6) || isPlayerInFrakt(playerid,16))
    {
    if(fv == -1)return SendClientMessage(playerid,GRAU,"Du sitzt in keinem Fraktionsfahrzeug.");
    if(Fahrzeug[fv][Fraktion] != Spieler[playerid][pFraktion])return SendClientMessage(playerid,GRAU,"Du sitzt in keinem Fraktionsfahrzeug.");
    if(Spieler[playerid][pDuty] == 0)return SendClientMessage(playerid,GRAU,"Du bist nicht im Dienst..");
    if(GetPlayerVehicleSeat(playerid) != 0)return SendClientMessage(playerid,GRAU,"Nicht der Fahrer des Fahrzeugs.");
    if(UCL[vehicleid] == 0)
    {
    if(GetCopLightsCount() >= MAX_COPLIGHTS)return SendClientMessage(playerid,GRAU,"Es wurde bereits das maximale Limit an Blaulichtern/Warnlichtern erstellt.");
    if(GetVehicleModel(vehicleid) == 415)//cheetah
    {
    sirene[0][vehicleid] = CreateObject(19288,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    sirene[1][vehicleid] = CreateObject(18646,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    sirene[2][vehicleid] = CreateObject(19288,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    sirene[3][vehicleid] = CreateObject(19288,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    AttachObjectToVehicle(sirene[0][vehicleid],vehicleid,0 ,2.6,0,0,0,0);//Vorne Mitte
    AttachObjectToVehicle(sirene[1][vehicleid],vehicleid,-0.4,-0.2,0.65,0,0,0);//Dach sirene
    AttachObjectToVehicle(sirene[2][vehicleid],vehicleid,0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
    AttachObjectToVehicle(sirene[3][vehicleid],vehicleid,-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
    SendClientMessage(playerid,GELB,"Blaulicht angebracht.");
    UCL[vehicleid] = 1;
    return 1;
    }
    if(GetVehicleModel(vehicleid) == 426)//premier
    {
    sirene[0][vehicleid] = CreateObject(19288,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    sirene[1][vehicleid] = CreateObject(18646,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    sirene[2][vehicleid] = CreateObject(19288,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    sirene[3][vehicleid] = CreateObject(19288,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    AttachObjectToVehicle(sirene[0][vehicleid],vehicleid,0,2.6,0,0,0,0);//Vorne Mitte
    AttachObjectToVehicle(sirene[1][vehicleid],vehicleid,-0.5,0,0.88,0,0,0);//Dach sirene
    AttachObjectToVehicle(sirene[2][vehicleid],vehicleid,0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
    AttachObjectToVehicle(sirene[3][vehicleid],vehicleid,-0.7,2.6,0,0,0,0);//dachsirene licht
    SendClientMessage(playerid,GELB,"Blaulicht angebracht.");
    UCL[vehicleid] = 1;
    return 1;
    }
    if(GetVehicleModel(vehicleid) == 470)//patriot
    {
    sirene[0][vehicleid] = CreateObject(19288,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    sirene[1][vehicleid] = CreateObject(18646,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    sirene[2][vehicleid] = CreateObject(19288,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    sirene[3][vehicleid] = CreateObject(19288,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    sirene[4][vehicleid] = CreateObject(19292,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    AttachObjectToVehicle(sirene[0][vehicleid],vehicleid,0,2.6,0,0,0,0);//Vorne Mitte
    AttachObjectToVehicle(sirene[1][vehicleid],vehicleid,-0.5,0.0,1.1,0,0,0);//Dach sirene
    AttachObjectToVehicle(sirene[2][vehicleid],vehicleid,0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
    AttachObjectToVehicle(sirene[3][vehicleid],vehicleid,-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
    AttachObjectToVehicle(sirene[4][vehicleid],vehicleid,0,0.9,0.4,0,0,0);//Mittig im Fenster
    SendClientMessage(playerid,GELB,"Blaulicht angebracht.");
    UCL[vehicleid] = 1;
    return 1;
    }
    if(GetVehicleModel(vehicleid) == 490)//FBI Ranger
    {
    sirene[0][vehicleid] = CreateObject(19288,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    sirene[1][vehicleid] = CreateObject(19419,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    sirene[2][vehicleid] = CreateObject(19288,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    sirene[3][vehicleid] = CreateObject(19292,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    sirene[4][vehicleid] = CreateObject(19280,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    sirene[5][vehicleid] = CreateObject(19280,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    AttachObjectToVehicle(sirene[0][vehicleid],vehicleid,0,2.9,0,0,0,0);//Vorne Mitte
    AttachObjectToVehicle(sirene[1][vehicleid],vehicleid,0.0,0.4,1.1,0,0,0);//Dach sirene
    AttachObjectToVehicle(sirene[2][vehicleid],vehicleid,-0.7,2.9,0,0,0,0);//Vorne Licht Fahrerseite
    AttachObjectToVehicle(sirene[3][vehicleid],vehicleid,0,0.9,0.4,0,0,0);//Mittig im Fenster
    AttachObjectToVehicle(sirene[4][vehicleid],vehicleid,0.8,2.9,-0.45,0,0,0);//Vorne Licht Beifahrerseite
    AttachObjectToVehicle(sirene[5][vehicleid],vehicleid,-0.8,2.9,-0.45,0,0,0);//Vorne Licht Fahrerseite
    SendClientMessage(playerid,GELB,"Blaulicht angebracht.");
    UCL[vehicleid] = 1;
    return 1;
    }
    if(GetVehicleModel(vehicleid) == 541)//bullet
    {
    sirene[0][vehicleid] = CreateObject(19288,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    sirene[1][vehicleid] = CreateObject(18646,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    sirene[2][vehicleid] = CreateObject(19288,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    sirene[3][vehicleid] = CreateObject(19288,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    AttachObjectToVehicle(sirene[0][vehicleid],vehicleid,0,2.6,0,0,0,0);//Vorne Mitte
    AttachObjectToVehicle(sirene[1][vehicleid],vehicleid,-0.45,-0.1,0.65,0,0,0);//Dach sirene
    AttachObjectToVehicle(sirene[2][vehicleid],vehicleid,0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
    AttachObjectToVehicle(sirene[3][vehicleid],vehicleid,-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
    SendClientMessage(playerid,GELB,"Blaulicht angebracht.");
    UCL[vehicleid] = 1;
    return 1;
    }
    if(GetVehicleModel(vehicleid) == 560)//sultan
    {
    sirene[0][vehicleid] = CreateObject(19288,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    sirene[1][vehicleid] = CreateObject(18646,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    sirene[2][vehicleid] = CreateObject(19288,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    sirene[3][vehicleid] = CreateObject(19292,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    sirene[4][vehicleid] = CreateObject(19280,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    sirene[5][vehicleid] = CreateObject(19280,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    AttachObjectToVehicle(sirene[0][vehicleid],vehicleid,0,2.6,0,0,0,0);//Vorne Mitte
    AttachObjectToVehicle(sirene[1][vehicleid],vehicleid,-0.5,0,0.88,0,0,0);//Dach sirene
    AttachObjectToVehicle(sirene[2][vehicleid],vehicleid,-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
    AttachObjectToVehicle(sirene[3][vehicleid],vehicleid,0,0.9,0.4,0,0,0);//Mittig im Fenster
    AttachObjectToVehicle(sirene[4][vehicleid],vehicleid,0.3,2.6,-0.3,0,0,0);//Vorne Licht Beifahrerseite
    AttachObjectToVehicle(sirene[5][vehicleid],vehicleid,-0.3,2.6,-0.3,0,0,0);//Vorne Licht Fahrerseite
    SendClientMessage(playerid,GELB,"Blaulicht angebracht.");
    UCL[vehicleid] = 1;
    return 1;
    }
    if(GetVehicleModel(vehicleid) == 601)//SWAT
    {
    sirene[0][vehicleid] = CreateObject(19288,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    sirene[1][vehicleid] = CreateObject(18646,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    sirene[2][vehicleid] = CreateObject(19288,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    sirene[3][vehicleid] = CreateObject(19288,0.0,0.0,0.0,0.0,0.0,0.0,250.0);
    AttachObjectToVehicle(sirene[0][vehicleid],vehicleid,0,2.9,0,0,0,0);//Vorne Mitte
    AttachObjectToVehicle(sirene[1][vehicleid],vehicleid,0.5,-2.7,1.3,0,0,0);//Dach sirene
    AttachObjectToVehicle(sirene[2][vehicleid],vehicleid,0.7,2.9,0,0,0,0);//Vorne Licht Beifahrerseite
    AttachObjectToVehicle(sirene[3][vehicleid],vehicleid,-0.7,2.9,0,0,0,0);//Vorne Licht Fahrerseite
    SendClientMessage(playerid,GELB,"Blaulicht angebracht.");
    UCL[vehicleid] = 1;
    return 1;
    }
    return SendClientMessage(playerid,GRAU,"Du kannst auf diesem Fahrzeug kein Blaulicht errichten!");
    }
    else if(UCL[vehicleid] == 1)
    {
    for(new i=0;i<10;i++){ DestroyObject(sirene[i][vehicleid]); }
    SendClientMessage(playerid,GELB,"Blaulicht entfernt.");
    UCL[vehicleid] = 0;
    return 1;
    }
    }
    return SendClientMessage(playerid,GRAU,"Du bist nicht in der jeweiligen Fraktion.");
    }

    Das stimmt, wenn es aber mal wieder mega gute Server gäbe, würde bestimmt wieder aktiv gespielt. Ich denke schon die ganze Zeit nach ob das was wird mit einem Server.