Beiträge von AhaEinHunter

    Guten Abend Ich Bin auf der Suche nach nehm ReSpawnGangAutos System.
    und zwar sollte es So sein das man als Leader zb Ballas Leader den befehl eintippt


    /BallasReSpawncars


    Ein Tippt das die Ballas Cars ReSpawnen



    mgh Hunter

    Welche tastenkombination meints denn?? die hier



    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
    if ((newkeys==KEY_FIRE))
    {
    if(IsPlayerInArea(playerid,1120.99, -951.5297, 1349.16, -837.0452))
    {
    SendClientMessage(playerid,0xFFFF00AA,"Du wurdest 5sek wegen DM gefreezt.");
    TogglePlayerControllable(playerid, 0);
    SetTimerEx("DmUnfreeze", 5000, 0, "i", playerid);
    }
    }
    if((newkeys & KEY_NO) && !(oldkeys & KEY_NO))//deine belegung
    {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
    new engine,light,alarm,doors,bonnet,boot,objective;
    new veh = GetPlayerVehicleID(playerid);
    GetVehicleParamsEx(veh,engine,light,alarm,doors,bonnet,boot,objective);
    if(Motor[veh] == 0)
    {
    SetVehicleParamsEx(veh,VEHICLE_PARAMS_ON,light,alarm,doors,bonnet,boot,objective);
    SendClientMessage(playerid,0xFFFF00AA,"Motor angeschaltet!");
    Motor[veh] = 1;
    }
    else
    {
    SetVehicleParamsEx(veh,VEHICLE_PARAMS_OFF,light,alarm,doors,bonnet,boot,objective);
    SendClientMessage(playerid,0xFFFF00AA,"Motor ausgeschaltet!");
    Motor[veh] = 0;
    }
    }
    }
    return 1;
    }


    stock IsPlayerInArea(playerid,Float:minX,Float:minY,Float:maxX,Float:maxY)
    {
    new Float:pX,Float:pY,Float:pZ;
    GetPlayerPos(playerid,pX,pY,pZ);
    if(pX >= minX && pX <= maxX && pY >= minY && pY <= maxY) return 1;
    else return 0;
    }

    Ja hab ich gemacht aber irgentwie sist der motor immer ncoh automatich an


    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    Motor[GetPlayerVehicleID(playerid)] = 0;
    new modelid = GetVehicleModel(vehicleid);
    if(modelid == 522)
    {
    SetPlayerAttachedObject(playerid, 1, 18645, 2, 0.07, 0, 0, 88, 75, 0);
    }
    if(PlayerInfo[playerid][pCarLic] < 1 && !IsAPlane(vehicleid) && !IsABoat(vehicleid))
    {
    SendClientMessage(playerid, COLOR_RED, " Du hast keinen Führerschein (15000$) !");
    SendClientMessage(playerid, COLOR_RED, " Meide die Polizei, denn wenn du erwischt wirst, siehts nicht gut für dich aus.");
    }
    new tmp = GetVehicleModel(GetPlayerVehicleID(playerid));
    new Float:armor;
    GetPlayerArmour(playerid, armor);
    if(tmp == 427)
    {
    SetPlayerArmour(playerid, armor);
    return 1;
    }
    SendClientMessage(playerid,COLOR_ORANGE,"Starte dein Motor Mit der Taste (N)");
    SendClientMessage(playerid,COLOR_ORANGE,"Bei Problemen mit ihrem Auto benutzen sie /service adac");
    gGas[playerid] = 1;
    new string[60];
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
    format(string, sizeof(string), "AdminInfo: VehicleID: %d || Model: %s[%d]", vehicleid, CarName[modelid-400], modelid);
    SendClientMessage(playerid, COLOR_ORANGE, string);
    }
    if(gTeam[playerid] >= 3)
    {
    if (IsACopCar(vehicleid) && !ispassenger)
    {
    if(PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pLeader]==1 ||PlayerInfo[playerid][pMember]==2 ||PlayerInfo[playerid][pLeader]==2 ||PlayerInfo[playerid][pMember]==3 ||PlayerInfo[playerid][pLeader]==3) { }
    else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Diebstahl"); }
    }
    }
    return 1;
    }

    C:\Users\Marcel\Desktop\gm.pwn(39836) : warning 219: local variable "lights" shadows a variable at a preceding level
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    1 Warning.



    new engine,lights,alarm,doors,bonnet,boot,objective;