Beiträge von DerFamer

    lightEffect(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]);


    Habe das auch gefunden würde das reichen?


    //E:


    lightEffect(vid)
    {
    new xx[7];
    GetVehicleParamsEx(vid,xx[0],xx[1],xx[2],xx[3],xx[4],xx[5],xx[6]);
    new andas=((xx[1]==-1||xx[1]==0)?(1):(0));
    SetTimerEx("lightEffectEx",100,false,"dd",vid,andas);
    SetTimerEx("lightEffectEx",600,false,"dd",vid,xx[1]);
    SetTimerEx("lightEffectEx",1100,false,"dd",vid,andas);
    SetTimerEx("lightEffectEx",1600,false,"dd",vid,xx[1]);
    }
    forward lightEffectEx(vid,stt); public lightEffectEx(vid,stt)
    {
    new xx[7];
    GetVehicleParamsEx(vid,xx[0],xx[1],xx[2],xx[3],xx[4],xx[5],xx[6]);
    SetVehicleParamsEx(vid,xx[0],stt,xx[2],xx[3],xx[4],xx[5],xx[6]);
    }


    //E:
    Sorry Handy
    //e:
    HOFFE es ist besser

    Währe eine möglichkeit könnte man auch einbaun.



    Nun suche ich ja wie man es fürs car abschließen und aufschließen macht. Zudem hab ich da kaum Ahnung bin es am lernen. Villt könntest du mir es mal zeigen wie man das macht mir Alarm und das mit car aufschließen und abschießen das die lichter blinken.

    if (strcmp("/carlock", cmdtext, true, 10) == 0)
    {
    if(Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]])
    {
    new Status = Dtc_Carlock[PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]];
    new Float:dtc_X,Float:dtc_Y,Float:dtc_Z;
    GetVehiclePos(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId],dtc_X,dtc_Y,dtc_Z);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i,20.0,dtc_X,dtc_Y,dtc_Z))
    {
    PlayerPlaySound(i,1147,dtc_X,dtc_Y,dtc_Z);
    }
    }
    switch (Status)
    {
    case 0:
    {
    GameTextForPlayer(playerid, "~w~Fahrzeug ~r~abgeschlossen", 5000, 6);
    PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
    Dtc_Carlock[PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]] = 1;
    Dtc_LockCar(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]);
    }
    case 1:
    {
    GameTextForPlayer(playerid, "~w~Fahrzeug ~g~aufgeschlossen", 5000, 6);
    PlayerPlaySound(playerid, 1145, 0.0, 0.0, 0.0);
    Dtc_Carlock[PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]] = 0;
    Dtc_UnLockCar(PlayerCar[playerid][Dtc_PlayerKey[playerid]][CarId]);
    }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Du besitzt Kein Fahrzeug für deinen Ausgewählten Schlüssel!");
    return 1;
    }
    return 1;
    }


    Hallo ich habe eine Frage ich bin auf der suche wen ich das car abschliessen und aufschliessen das die lichter Blinken.


    Vielen Dank im Vorraus!


    //E:


    if(newkeys == KEY_ANALOG_UP)
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    new engine,lights,alarm,doors,bonnet,boot,objective;
    new vid = GetPlayerVehicleID(playerid);
    if(licht[vid] == false)
    {
    GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
    licht[vid] = true;
    }
    else if(licht[vid] == true)
    {
    GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
    licht[vid] = false;
    }
    }
    }

    Hallo Ich habe eine Frage:


    Ich möchte wen er Connectet und sich einloggt ganz Normal ma newbspawn spawnt und nicht im Hotel habe es Versucht 26 Erros :(


    else if(PlayerInfo[playerid][pZivispawn] == 1) // LOS SANTOS SPAWN
    {
    if(PlayerInfo[playerid][pLevel] == 1 && PlayerInfo[playerid][pOwnPerso] == 0)
    {

    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE," ");
    SetPlayerPos(playerid,1715.3109,-1951.0555,14.1172);
    SetPlayerFacingAngle(playerid,276.6497);
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    PlayerInfo[playerid][pRollerLic] = 1;
    PlayerInfo[playerid][pPhoneBook] = 1;
    DisablePlayerCheckpoint(playerid);
    SetPlayerCheckpoint(playerid,1738.1816,-1949.5975,14.1172,2.0); // zum BHF
    }
    else
    {
    SetPlayerPos(playerid,1423.7788,-1814.6895,13.5469); // Nach dem tut
    SetPlayerFacingAngle(playerid,358.8067);
    SetPlayerInterior(playerid,15);
    SetPlayerVirtualWorld(playerid,0);
    // Noob Hotel Spawns
    switch(random(8))
    {
    case 0:
    {
    SetPlayerPos(playerid,2198.1956,-1158.2441,1029.7969); // 8
    }
    case 1:
    {
    SetPlayerPos(playerid,2188.4031,-1156.4893,1029.7969); // 7
    }
    case 2:
    {
    SetPlayerPos(playerid,2198.6318,-1173.6577,1029.7969); // 6
    }
    case 3:
    {
    SetPlayerPos(playerid,2208.7246,-1193.4209,1029.7969); // 5
    }
    case 4:
    {
    SetPlayerPos(playerid,2227.1663,-1183.2559,1029.8043); // 4
    }
    case 5:
    {
    SetPlayerPos(playerid,2235.7727,-1169.6208,1029.8043); // 3
    }
    case 6:
    {
    SetPlayerPos(playerid,2235.5159,-1159.5808,1029.7969); // 2
    }
    default:
    {
    SetPlayerPos(playerid,2246.8823,-1160.9828,1029.7969); // 1
    }
    }


    }
    }
    else
    {
    rand = random(sizeof(gRandomPlayerSpawns));
    SetPlayerPos(playerid, gRandomPlayerSpawns[rand][0], gRandomPlayerSpawns[rand][1], gRandomPlayerSpawns[rand][2]); // Warp the player
    SetPlayerFacingAngle(playerid, 180.0); //normal 270.0
    SetPlayerInterior(playerid,3); //normal 15
    PlayerInfo[playerid][pInt] = 3; //normal 15
    }
    return 1;
    }
    }
    return 1;
    }

    Create3DTextLabel("{0x21DD00FF}Fahrradverleih{0xFFFFFFAA}\n Spieler unter Level 4 können\n hier für 300$ ein Fahrrad mieten.\n{0x21DD00FF}/fahrrad{0xFFFFFFAA}",0xFFFFFFAA,1773.0819,-1896.1542,13.5516,30,0); //Fahrradverleih

    Oder so:


    Create3DTextLabel("{21DD00FF}Fahrradverleih{FFFFFFAA}\n Spieler unter Level 4 können\n hier für 300$ ein Fahrrad mieten.\n{0x21DD00FF}/fahrrad{0xFFFFFFAA}",0xFFFFFFAA,1773.0819,-1896.1542,13.5516,30,0); //Fahrradverleih


    Iwie will er mir das Fahrradverleih und /Fahrrad nicht in Grün anzeigen :(

    ocmd:fahrrad(playerid)
    {
    if(IsPlayerInRangeOfPoint(playerid,30.0,1773.0819,-1896.1542,13.5516))
    GivePlayermoney(playerid, -300);
    {
    if(Mietfahrrad[playerid] != 0)return SendClientMessage(playerid, RED,"Du hast dir bereits ein Fahrrad gemietet!");
    if(GetPlayerScore(playerid) > 4)return SendClientMessage(playerid, RED,"Du kannst dir kein Fahrrad mieten, da du über Level 4 bist!");
    Mietfahrrad[playerid] = CreateVehicle(481, 1778.7252, -1896.2073, 12.8533, 267.3409,-1,-1,100);
    }
    return true;
    }


    Sorry das ich nochmal Frage


    Stimmt das so mit GivePlayermoney,-300);
    Ob es in der Richtigen Zeile ist

    Hab ich eingebaut nun die letzte Frage wie kann ich es machen das er sich nur ein Fahrrad Holen kann.


    ocmd:fahrrad(playerid)
    {
    if(IsPlayerInRangeOfPoint(playerid,30.0,1773.0819,-1896.1542,13.5516))
    {
    if(GetPlayerScore(playerid) > 4)return SendClientMessage(playerid, RED,"Du kannst dir kein Fahrrad mieten, da du über Level 4 bist!");
    Mietfahrrad[playerid] = CreateVehicle(481, 1778.7252, -1896.2073, 12.8533, 267.3409,-1,-1,100);
    }
    return true;
    }