Beiträge von Dome_

    Hey
    Undzwar sollen bei diesem System seine Mats verkauft werden jedoch funktioniert es nicht.
    Mats sind mit pMats deklariert.

    ocmd:sellmats(playerid, params[])
    {
    new menge, id, Float:x, Float:y, Float:z, string[256];
    if(PlayerInfo[playerid][pJob] != 9)return SendClientMessage(playerid, -1, "Du bist kein Waffenhändler!");
    if(sscanf(params, "ii", id, menge))return SendClientMessage(playerid, -1, "Fehler: /sellmats [id] [Menge]");
    if(!IsPlayerConnected(id))return SendClientMessage(playerid, -1, "Fehler: Dieser Spieler ist nicht online!");
    if(PlayerInfo[id][pLeader] == -1)return SendClientMessage(playerid, -1, "Diese Person ist nicht berechtigt!");
    if(PlayerInfo[id][pLeader] != 5 && PlayerInfo[id][pLeader] != 6 && PlayerInfo[id][pLeader] != 8 && PlayerInfo[id][pLeader] != 10 && PlayerInfo[id][pLeader] != 19 &&
    PlayerInfo[id][pLeader] != 20 && PlayerInfo[id][pLeader] != 22 && PlayerInfo[id][pLeader] != 26)return SendClientMessage(playerid, -1, "Diese Person ist nicht berechtigt!");
    GetPlayerPos(id, x, y, z);
    if(!IsPlayerInRangeOfPoint(playerid, 3.0, x, y, z))return SendClientMessage(playerid, -1, "Fehler: Du bist nicht in der Nähe des jeweiligen Leaders!");
    if(GetPVarInt(playerid, "pMats") < menge)return SendClientMessage(playerid, -1, "Fehler: Du hast nicht genug Materialen dabei!");
    format(string, sizeof(string), "Du hast der Fraktions ID %i %i Mats angeboten!", PlayerInfo[id][pLeader], menge);
    SendClientMessage(playerid, -1, string);
    #define brx 10*menge
    format(string, sizeof(string), "%s bietet dir %i Materialen für $%i an!", Spielername(playerid), menge, brx);
    ShowPlayerDialog(id, DIALOG_MATS_QUEST, DIALOG_STYLE_MSGBOX, "Materialen", string, "Annehmen", "Ablehnen");
    WIDx[id] = menge;
    return 1;
    }


    if(dialogid == DIALOG_MATS_QUEST)
    {
    if(response == 1)
    {
    new query[256], id[2], frakid;
    id[0] = PlayerInfo[playerid][pMember], id[1] = PlayerInfo[playerid][pLeader];
    if(id[0] != -1 && id[1] == -1){frakid = PlayerInfo[playerid][pMember];}
    if(id[0] == -1 && id[1] != -1){frakid = PlayerInfo[playerid][pLeader];}
    Mats_x[frakid] += WIDx[playerid], SetPVarInt(WID[playerid], "pMats", GetPVarInt(WID[playerid], "WMats") - WIDx[playerid] );
    format(query, sizeof(query), "UPDATE fmats SET Mats = '%i' WHERE fID = '%i'", Mats_x[frakid], frakid);
    self_mysql_query(query);
    #define berechnung WIDx[playerid]*10
    KassenInfo[PlayerInfo[playerid][pLeader]][tKasse] -= berechnung;
    }
    }


    Danke im vorraus

    Guten tag Liebe Breadfish User.....Ich habe das filterscript hochgeladen , aber wenn ich ingame irgendein befehl eingebe Kommt bei mir immer Mapteleport aktiviert oder teleport deaktiviert...Ich bitte eine fixxed version raus geben oder kann mir jemand helfen ?


    Mir freundlichen grüßen
    FaMezZz


    Hab das gleiche Problem

    Hey
    Undzwar wird sobald ich in ein CAr einsteige nix angezeigt.
    public OnPlayerStatetChange(playerid, newstate, oldstate)
    {


    if(newstate == PLAYER_STATE_PASSENGER)
    {
    new pOldCar[MAX_PLAYERS];
    pOldCar[playerid] = GetPlayerVehicleID(playerid);
    if(pOldCar[playerid] == BotCarDirk)
    {
    SendClientMessage(playerid,COLOR_GREEN,"Dirk: Du bezahlst 20$ für dein Busticket.");
    GivePlayerMoneys(playerid,-20);


    }




    }
    new string[256],string1[200],string2[30],string3[40],string4[20],
    playername[MAX_PLAYER_NAME];
    ForAllPlayers(i)
    {
    if(GetPlayerState(i) == PLAYER_STATE_SPECTATING && Spectate[i] == playerid)
    {
    if(oldstate == PLAYER_STATE_ONFOOT && (newstate == PLAYER_STATE_DRIVER || newstate == PLAYER_STATE_PASSENGER))
    {
    PlayerSpectateVehicle(i,GetPlayerVehicleID(playerid));
    }
    else if((oldstate == PLAYER_STATE_DRIVER || oldstate == PLAYER_STATE_PASSENGER) && newstate == PLAYER_STATE_ONFOOT)
    {
    PlayerSpectatePlayer(i,playerid);
    }
    }
    }
    GetPlayerName(playerid, playername, sizeof(playername));
    if(newstate == PLAYER_STATE_ONFOOT)
    {
    if(BusfahrInfo[playerid][b_Aktiv])
    {
    BusfahrInfo[playerid][b_Aktiv]=false;
    DisablePlayerCheckpoint(playerid);
    SetVehicleToRespawn(GetPlayerVehicleID(playerid));
    }
    AllowTune[playerid] = -1;
    if(oldstate == PLAYER_STATE_DRIVER)
    {
    if(GetVehicleModel(gLastCar[playerid]) == 440 || GetVehicleModel(gLastCar[playerid]) == 456 || GetVehicleModel(gLastCar[playerid]) == 552)
    {
    if(Gas[gLastCar[playerid]] < 100)
    {
    new VID,
    FillUp,
    TankKosten;
    VID = gLastCar[playerid];
    FillUp = GasMax - Gas[VID];
    TankKosten = FillUp * 15;
    Gas[VID] += FillUp;
    format(string,sizeof(string),"* Du hast das Fahrzeug für $%d (15$ pro Liter)betankt.", TankKosten);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    GivePlayerMoneys(playerid, -TankKosten);
    new engine,lights,alarm,doors,bonnet,boot,objective;
    GetVehicleParamsEx(VID,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(VID,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    }
    }
    if(GetVehicleModel(gLastCar[playerid]) == 515 || GetVehicleModel(gLastCar[playerid]) == 532 || GetVehicleModel(gLastCar[playerid]) == 437 || GetVehicleModel(gLastCar[playerid]) == 431)
    {
    if(Gas[gLastCar[playerid]] < 100)
    {
    new VID,
    FillUp,
    TankKosten;
    VID = gLastCar[playerid];
    FillUp = GasMax - Gas[VID];
    TankKosten = FillUp * 30;
    Gas[VID] += FillUp;
    format(string,sizeof(string),"* Du hast das Fahrzeug für $%d (30$ pro Liter)betankt.", TankKosten);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    GivePlayerMoneys(playerid, -TankKosten);
    new engine,lights,alarm,doors,bonnet,boot,objective;
    GetVehicleParamsEx(VID,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(VID,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    }
    }
    if(GetVehicleModel(gLastCar[playerid]) == 420 || GetVehicleModel(gLastCar[playerid]) == 438)
    {
    if(Gas[gLastCar[playerid]] < 100)
    {
    new VID,
    FillUp,
    TankKosten;
    VID = gLastCar[playerid];
    FillUp = GasMax - Gas[VID];
    TankKosten = FillUp * 5;
    Gas[VID] += FillUp;
    format(string,sizeof(string),"* Du hast das Fahrzeug für $%d (5$ pro Liter)betankt.", TankKosten);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    GivePlayerMoneys(playerid, -TankKosten);
    new engine,lights,alarm,doors,bonnet,boot,objective;
    GetVehicleParamsEx(VID,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(VID,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    }
    }
    if(TransporterRobberID == playerid)
    {
    for(new h=0; h<sizeof(RobTransporter); h++){
    if(gLastCar[playerid] == RobTransporter[h]){
    DisablePlayerCheckpoint(playerid);
    TransporterRobberID = -1;
    CP[playerid] = 0;
    new engine,lights,alarm,doors,bonnet,boot,objective;
    GetVehicleParamsEx(gLastCar[playerid],engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(gLastCar[playerid],VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, " Das Ausrauben des Banktransporters ist fehlgeschlagen");
    format(string, sizeof(string), "Funk: %s ist beim versuch den Geldtransporter zu Stehlen gescheitert.!", playername);
    SendCopMessage(COLOR_RADIO,string);
    }}}
    if(PlayerInfo[playerid][pJob] == 17)
    {
    for(new h=0; h<sizeof(StatdreiniegerAuto); h++){
    if(gLastCar[playerid] == StatdreiniegerAuto[h]){
    if(CP[playerid] >= 74 && CP[playerid] <= 90){
    DisablePlayerCheckpoint(playerid);
    CP[playerid] = 0;
    new engine,lights,alarm,doors,bonnet,boot,objective;
    GetVehicleParamsEx(gLastCar[playerid],engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(gLastCar[playerid],VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, " Du hast die Reiniegung abgebrochen und bekommst daher kein Geld !");
    }}}}
    new VEH = gLastCar[playerid];
    if(Locked[VEH] == 1){
    Locked[VEH] = 0;
    ForAllPlayers(i){SetVehicleParamsForPlayer(VEH,i, 0, 0);}
    }
    if(Spectating[playerid] != -1 || GangAutoSpectating[playerid] != -1)
    {
    Spectating[playerid] = -1;
    GangAutoSpectating[playerid] = -1;
    }
    }
    if(oldstate == PLAYER_STATE_PASSENGER)
    {
    if(PlayerTied[playerid] == 1)
    {
    SendClientMessage(playerid,COLOR_LIGHTBLUE, "Du wirst in 15 Sekunden Automatich vom System unfreezt!");
    SetTimerEx("TieUnfreeze",15000,0,"i",playerid);
    }
    }
    TextDrawHideForPlayer(playerid,Tacho[playerid]);
    TextDrawHideForPlayer(playerid,Tacho1[playerid]);
    TextDrawHideForPlayer(playerid,Tacho2[playerid]);
    TextDrawHideForPlayer(playerid,Tacho3[playerid]);
    TextDrawHideForPlayer(playerid,Tacho4[playerid]);
    TextDrawHideForPlayer(playerid,Tacho5[playerid]);
    TextDrawHideForPlayer(playerid,Tacho7[playerid]);
    TextDrawHideForPlayer(playerid,Tacho6[playerid]);
    //TextDrawHideForPlayer(playerid,AntiAFK[playerid]);
    if(PlayerKarting[playerid] > 0 && PlayerInKart[playerid] > 0)
    {
    PlayerInKart[playerid] = 0;
    KartingPlayers --;
    }
    if(TransportDuty[playerid] > 0)
    {
    if(TransportDuty[playerid] == 1)
    {
    TaxiDrivers -= 1;
    }
    else if(TransportDuty[playerid] == 2)
    {
    BusDrivers -= 1;
    }
    TransportDuty[playerid] = 0;
    StopEngine(playerid,gLastCar[playerid]);
    format(string, sizeof(string), "* Du bist nun ausser Dienst und hast $%d verdient.", TransportMoney[playerid]);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    GivePlayerMoneys(playerid, TransportMoney[playerid]);
    TransportValue[playerid] = 0; TransportMoney[playerid] = 0;
    SetPlayerToTeamColor(playerid);
    }
    if(TransportCost[playerid] > 0 && TransportDriver[playerid] < 999)
    {
    if(IsPlayerConnected(TransportDriver[playerid]))
    {
    TransportMoney[TransportDriver[playerid]] += TransportCost[playerid];
    TransportTime[TransportDriver[playerid]] = 0;
    TransportCost[TransportDriver[playerid]] = 0;
    format(string, sizeof(string), "~w~Taxikosten~n~~r~$%d",TransportCost[playerid]);
    GameTextForPlayer(playerid, string, 5000, 1);
    format(string, sizeof(string), "~w~Passagier verlässt das Taxi~n~~g~Lohn $%d",TransportCost[playerid]);
    GameTextForPlayer(TransportDriver[playerid], string, 5000, 1);
    GivePlayerMoneys(playerid, -TransportCost[playerid]);
    TransportCost[playerid] = 0;
    TransportTime[playerid] = 0;
    TransportDriver[playerid] = 999;
    }
    }
    if(WantedHackZeit[playerid] > 0)
    {
    SendClientMessage(playerid, COLOR_ERRORTEXT, " Du bist nicht mehr in deinem Hacker Van, daher wurde dein Hackversuch abgebrochen !");
    WantedHackZeit[playerid] = -1;
    WantedHackKunde[playerid] = -1;
    JobFreeze[playerid] = 600;
    SendCopMessage(COLOR_RADIO, "Funk: Der Hackversuch wurde abgebrochen{FF0000} (Ausgestiegen)");
    TogglePlayerControllable(playerid, 1);
    }
    }
    if(newstate == PLAYER_STATE_PASSENGER || newstate == PLAYER_STATE_DRIVER){
    new vehicleid = GetPlayerVehicleID(playerid);
    if(VehRadio[vehicleid] == 0){ StopAudioStreamForPlayer(playerid);}
    else if(VehRadio[vehicleid] == 1){ PlayAudioStreamForPlayer(playerid, "http://www.antenne.de/webradio/antenne.m3u");}
    else if(VehRadio[vehicleid] == 2){ PlayAudioStreamForPlayer(playerid, "http://www.antenne.de/webradio/channels/chillout.m3u");}
    else if(VehRadio[vehicleid] == 3){ PlayAudioStreamForPlayer(playerid, "http://85.25.86.69:8100/listen.pls");}
    else if(VehRadio[vehicleid] == 4){ PlayAudioStreamForPlayer(playerid, "http://www.ndr.de/resources/metadaten/audio/m3u/ndrloop25.m3u");}
    else if(VehRadio[vehicleid] == 5){ PlayAudioStreamForPlayer(playerid, "http://bcb-high.rautemusik.fm/listen.pls");}
    else if(VehRadio[vehicleid] == 6){ PlayAudioStreamForPlayer(playerid, "http://house-high.rautemusik.fm/rm.page//listen.pls");}
    else if(VehRadio[vehicleid] == 7){ PlayAudioStreamForPlayer(playerid, "http://listen.dancecore.fm/listen.pls");}
    else if(VehRadio[vehicleid] == 8){ PlayAudioStreamForPlayer(playerid, "http://www.shape-fm.de/mp3.pls");}
    else if(VehRadio[vehicleid] == 9){ PlayAudioStreamForPlayer(playerid, "http://listen.technobase.fm/aacplus.pls");}
    else if(VehRadio[vehicleid] == 10){ PlayAudioStreamForPlayer(playerid, "http://club-high.rautemusik.fm/rm.page//listen.pls");}
    else if(VehRadio[vehicleid] == 11){ PlayAudioStreamForPlayer(playerid, "http://harder-high.rautemusik.fm/listen.pls");}
    else if(VehRadio[vehicleid] == 12){ PlayAudioStreamForPlayer(playerid, "http://ahdjs.net/listen.pls");}
    else if(VehRadio[vehicleid] == 13){ PlayAudioStreamForPlayer(playerid, "http://listen.hardbase.fm/aacplus.pls");}
    else if(VehRadio[vehicleid] == 14){ PlayAudioStreamForPlayer(playerid, "http://jam-high.rautemusik.fm/rm.page//listen.pls");}
    else if(VehRadio[vehicleid] == 15){ PlayAudioStreamForPlayer(playerid, "http://blackbeats.fm/listen.m3u");}
    else if(VehRadio[vehicleid] == 16){ PlayAudioStreamForPlayer(playerid, "http://truehiphophigh.dyndns.org:9020/listen.pls");}
    else if(VehRadio[vehicleid] == 17){ PlayAudioStreamForPlayer(playerid, "http://www.jazz.fm/streaming/JAZZFM91.pls");}
    else if(VehRadio[vehicleid] == 18){ PlayAudioStreamForPlayer(playerid, "http://rock-high.rautemusik.fm//listen.pls");}
    else if(VehRadio[vehicleid] == 19){ PlayAudioStreamForPlayer(playerid, "http://metal-only.blitz-stream.de/listen.m3u");}
    else if(VehRadio[vehicleid] == 20){ PlayAudioStreamForPlayer(playerid, "http://www.iloveradio.de/listen.m3u");}
    else if(VehRadio[vehicleid] == 21){ PlayAudioStreamForPlayer(playerid, "http://www.iloveradio.de/listen2.m3u");}
    else if(VehRadio[vehicleid] == 22){ PlayAudioStreamForPlayer(playerid, "http://www.iloveradio.de/listen3.m3u");}
    }
    if(newstate == PLAYER_STATE_PASSENGER){
    new vehicleid = GetPlayerVehicleID(playerid);
    if(GetPlayerWeapon(playerid) != 29) {
    SetPlayerArmedWeapon(playerid, 29); }
    GetPlayerName(playerid, playername, sizeof(playername));
    if(PlayerInfo[playerid][pAdminOnDuty] == 0){
    if(PlayerInfo[playerid][pJailed] != 0)
    {
    SetPlayerHealth(playerid, 0);
    format(string, sizeof(string), ">> %s wurde bei dem versuch in ein Auto zu steigen gekillt <<", playername);
    ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
    }}
    ForAllPlayers(i){
    if(IsPlayerConnected(i)){
    if(IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == 2 && TransportDuty[i] > 0){
    if(PlayerInfo[playerid][pCash] < TransportValue[i]){
    format(string, sizeof(string), "* Du brauchst $%d um in das Taxi einsteigen zu können.", TransportValue[i]);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    RemovePlayerFromVehicle(playerid);
    }
    else{
    if(TransportDuty[i] == 1)
    {
    format(string, sizeof(string), "* Du bezahlst $%d an den Taxifahrer.", TransportValue[i]);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "* Gast %s hat das Taxi betreten.", playername);
    SendClientMessage(i, COLOR_LIGHTBLUE, string);
    TransportTime[i] = 1;
    TransportTime[playerid] = 1;
    TransportCost[playerid] = TransportValue[i];
    TransportCost[i] = TransportValue[i];
    TransportDriver[playerid] = i;
    }
    else if(TransportDuty[i] == 2)
    {
    format(string, sizeof(string), "* Du bezahlst $%d an den Busfahrer.", TransportValue[i]);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), "* Gast %s hat den Bus betreten.", playername);
    SendClientMessage(i, COLOR_LIGHTBLUE, string);
    }
    GivePlayerMoneys(playerid, - TransportValue[i]);
    TransportMoney[i] += TransportValue[i];
    }}}}}
    if(newstate == PLAYER_STATE_DRIVER){
    gLastCar[playerid] = GetPlayerVehicleID(playerid);
    // format(string,sizeof(string),"~w~Geschw: \t~g~0 km/h ~n~~w~Benzin:\t~g~ %d%%~n~~w~Fahrzeug:\t~p~ %s",Gas[GetPlayerVehicleID(playerid)],VehNames[GetVehicleModel(GetPlayerVehicleID(playerid))-400]);
    new VID = GetPlayerVehicleID(playerid);
    new value,
    Float:xX,
    Float:yY,
    Float:zZ,
    Float:X,
    Float:Y,
    Float:Z;
    GetVehiclePos(VID, xX, yY, zZ);
    GetVehicleVelocity(VID, X, Y, Z);
    value = floatround(floatsqroot((X*X) + (Y*Y) + (Z*Z)) * 100 * 1.40);
    new Speed[20];
    new Float:leben;
    if(value >= 0 && value <= 75){Speed = "~g~";}
    if(value > 75){Speed = "~r~";}
    new Tank[20];
    if(Gas[VID] > 10 && Gas[VID] <= 20){Tank = "~y~";}
    if(Gas[VID] <= 10){Tank = "~r~";}
    if(Gas[VID] > 20){Tank = "~g~";}
    //GetVehicleHealth(VID,leben);
    VehSpeed[VID] = value;
    GetVehicleHealth(VID,leben);
    format(string,sizeof(string),"~r~%s",VehNames[GetVehicleModel(VID)-400]);
    format(string1,sizeof(string1),"~r~KM/H:~g~ %d",value);
    format(string2,sizeof(string2),"~r~Tank:~g~ %s %d", Tank, Gas[VID]);
    format(string4,sizeof(string4),"~r~Zustand:~g~ %.1f",leben/10);
    format(string3,sizeof(string3),"~r~KM:~g~ Deaktiviert");


    TextDrawSetString(Tacho3[playerid], string);
    TextDrawSetString(Tacho4[playerid],string1);
    TextDrawSetString(Tacho6[playerid],string2);
    TextDrawSetString(Tacho5[playerid],string4);
    TextDrawSetString(Tacho7[playerid],string3);
    TextDrawShowForPlayer(playerid, Tacho[playerid]);
    TextDrawShowForPlayer(playerid, Tacho1[playerid]);
    TextDrawShowForPlayer(playerid, Tacho2[playerid]);
    TextDrawShowForPlayer(playerid, Tacho3[playerid]);
    TextDrawShowForPlayer(playerid, Tacho4[playerid]);
    TextDrawShowForPlayer(playerid, Tacho5[playerid]);
    TextDrawShowForPlayer( playerid,Tacho6[playerid]);
    TextDrawShowForPlayer(playerid, Tacho7[playerid]);
    //TextDrawShowForPlayer(playerid, AntiAFK[playerid]);
    new newcar = GetPlayerVehicleID(playerid);
    new typ = IsAutohausCar(newcar);
    new GATyp = IsGangAutohausCar(newcar);
    if(GetVehicleModel(newcar) == 447 || GetVehicleModel(newcar) == 425 || GetVehicleModel(newcar) == 432)
    {
    if(IsACop(playerid) && OnDuty[playerid] == 1 || PlayerInfo[playerid][pAdminOnDuty] == 1)
    {
    }
    else
    {
    SendClientMessage(playerid, COLOR_YELLOW, "Du kannst in dieses Fahrzeug nicht einsteigen, du wurdest gekickt");
    Kick(playerid);
    }
    }
    GetPlayerName(playerid, playername, sizeof(playername));
    SetPlayerArmedWeapon(playerid, 0);
    //new string[128];
    //Autohaus
    if(PlayerInfo[playerid][pAdminOnDuty] == 0){
    if(PlayerInfo[playerid][pJailed] != 0){
    SetPlayerHealth(playerid, 0);
    format(string, sizeof(string), ">> %s wurde bei dem versuch in ein Auto zu steigen gekillt <<", playername);
    ProxDetector(30.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
    }}
    if(typ != -1){
    if(Kaufliste[typ][Autohaus] == 2 && PlayerInfo[playerid][pDonatorRank] != 2){
    SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Donator Rank !");
    RemovePlayerFromVehicle(playerid);
    return 1;
    }
    //TogglePlayerControllable(playerid,0);
    Spectating[playerid] = typ;
    ForAllPlayers(i){
    if(IsPlayerConnected(i)){
    SetVehicleParamsForPlayer(newcar, i, 0, 1);
    }}
    SendClientMessage(playerid, COLOR_GRÜN, "~*~ Autohaus ~*~");
    format(string,sizeof(string),"Name: %s",Kaufliste[typ][Name]);
    SendClientMessage(playerid, COLOR_YELLOW, string);
    format(string,sizeof(string),"Preis: %s$",GetPoint(Kaufliste[typ][Preis]));
    SendClientMessage(playerid, COLOR_YELLOW, string);
    format(string,sizeof(string),"Reparaturkosten: %s$",GetPoint(Kaufliste[typ][Reparatur]));
    SendClientMessage(playerid, COLOR_YELLOW, string);
    SendClientMessage(playerid, COLOR_GREEN, "Dieses Fahrzeug ist zu verkaufen. Um es zu kaufen, benutze: /buycar");
    }
    //Autohaus Ende
    if(GATyp != -1){
    if(PlayerInfo[playerid][pLeader] != -1 || PlayerInfo[playerid][pRank] == 12 && PlayerInfo[playerid][pMember] != -1){
    //TogglePlayerControllable(playerid,0);
    GangAutoSpectating[playerid] = GATyp;
    ForAllPlayers(i){
    if(IsPlayerConnected(i)){
    SetVehicleParamsForPlayer(newcar, i, 0, 1);
    }}
    SendClientMessage(playerid, COLOR_GRÜN, "~*~ GangAutohaus ~*~");
    format(string,sizeof(string),"Name: %s",GangAutoKaufliste[GATyp][GAName]);
    SendClientMessage(playerid, COLOR_YELLOW, string);
    format(string,sizeof(string),"Preis: %s$",GetPoint(GangAutoKaufliste[GATyp][GAPreis]));
    SendClientMessage(playerid, COLOR_YELLOW, string);
    format(string,sizeof(string),"Reparaturkosten: %s$",GetPoint(GangAutoKaufliste[GATyp][GAReparatur]));
    SendClientMessage(playerid, COLOR_YELLOW, string);
    SendClientMessage(playerid, COLOR_GREEN, "Dieses Fahrzeug ist zu verkaufen. Um es zu kaufen, benutze: /buygangcar");
    //SendClientMessage(playerid, COLOR_GREEN, "Um das Fahrzeug zu verlassen, benutze: /exitcar");
    }
    else{
    SendClientMessage(playerid, COLOR_ERRORTEXT, " Du bist kein Leader !");
    RemovePlayerFromVehicle(playerid);
    }}
    if(IsARad(newcar)){
    new engine,lights,alarm,doors,bonnet,boot,objective;
    GetVehicleParamsEx(newcar,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(newcar,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
    }
    if(PlayerInfo[playerid][pConnectTime] < 10 && !IsARad(newcar)) SendClientMessage(playerid, COLOR_GRÜN, " /motor um den Motor zu Starten! /licht um das licht zu starten!.(/motorhelp) !");
    if(IsABoat(newcar)){
    if(PlayerInfo[playerid][pBoatLic] != 1){
    if(TakingLesson[playerid] == 1){}
    else{
    SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Bootschein !"); RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid,1);
    return 1;
    }}}
    else if(IsAPlane(newcar)){
    if(PlayerInfo[playerid][pFlyLic] != 1){
    if(TakingLesson[playerid] == 1){}
    else{
    SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Flugschein !"); RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1);
    return 1;
    }}}
    else if(IsAMotorrad(newcar)){
    if(PlayerInfo[playerid][pCarLic] != 1)
    {
    if(TakingLesson[playerid] == 1){}
    else{
    SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast kein Führerschein !"); RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1);
    return 1;
    }}}
    else if(IsALKW(newcar)){
    if(PlayerInfo[playerid][pCarLic] != 1){
    if(TakingLesson[playerid] == 1){}
    else{
    SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast kein Führerschein !"); RemovePlayerFromVehicle(playerid); TogglePlayerControllable(playerid, 1); return 1;
    }}}
    else{
    if(PlayerInfo[playerid][pCarLic] != 1){
    if(GetPlayerDrunkLevel(playerid) >= 2000){
    PlayerInfo[playerid][pWantedLevel] += 1;
    SetPlayerCriminal(playerid, 255, "Fahren unter Drogen/Alkohol einfluss");
    }
    else if(TakingLesson[playerid] == 1 || TakingLesson[playerid] == 2){
    }
    else if(IsAFahrrad(newcar) || GetVehicleModel(newcar) == 462)
    {
    // SendClientMessage(playerid, COLOR_LIGHTRED, " Fahrzeuge wie Faggio's und Fahrräder darf man bei uns auch ohne Führerschein fahren, also sehr gut geeignet für Neulinge.");
    // SendClientMessage(playerid, COLOR_LIGHTRED, " In der Stadthalle kannst du den Führerschein machen, benutze /navi um die Stadthalle zu finden.");
    }
    else
    {
    SendClientMessage(playerid, COLOR_ERRORTEXT, " Du hast keinen Führerschein !");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,1);
    return 1;
    }
    }
    else if(GetPlayerDrunkLevel(playerid) >= 2000)
    {
    PlayerInfo[playerid][pWantedLevel] += 1;
    SetPlayerCriminal(playerid, 255, "Fahren unter Drogen/Alkohol einfluss");
    }
    }
    if(GetVehicleModel(newcar) == 440 || GetVehicleModel(newcar) == 456)
    {
    format(string, sizeof(string), "Produkte: %d/%d", PlayerHaul[newcar][pLoad],PlayerHaul[newcar][pCapasity]);
    SendClientMessage(playerid, COLOR_GRÜN, string);
    SendClientMessage(playerid, COLOR_WHITE, "Soldat: Hier gibt es Materalien");
    SendClientMessage(playerid, COLOR_WHITE, "Soldat: Gebe folgendes ein /load /buyprods /sellprods");
    }
    for(new h=0; h<sizeof(RobTransporter); h++){
    if(GetPlayerVehicleID(playerid) == RobTransporter[h]){
    if(IsACop(playerid) && OnDuty[playerid] == 1)
    {
    }
    else
    {
    TogglePlayerControllable(playerid, 0);
    SendClientMessage(playerid, COLOR_GREY, "Nutze '/robtransporter' um den Banktransporter auszurauben, oder /exit um ihn zu verlassen!");
    }
    }
    }


    for(new h=0; h<sizeof(PilotFlug); h++){
    if(GetPlayerVehicleID(playerid) == PilotFlug[h]){
    if(PlayerInfo[playerid][pJob] == 18 || PlayerInfo[playerid][pAdmin] >= 2000)
    {
    SendClientMessage(playerid, COLOR_GREY, "Fliege nun zum Verlassenden Flughafen nach LV, dort angekommen, nutze /loadimport.");
    SetPlayerCheckpoint(playerid,365.2481, 2536.8669, 16.6653, 15);
    }
    else
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid, COLOR_GREY, "Du bist kein Pilot.");
    }}}
    for(new h=0; h<sizeof(StatdreiniegerAuto); h++){
    if(GetPlayerVehicleID(playerid) == StatdreiniegerAuto[h]){
    if(PlayerInfo[playerid][pJob] == 17 || PlayerInfo[playerid][pAdmin] >= 1337)
    {
    TogglePlayerControllable(playerid, 0);
    SendClientMessage(playerid, COLOR_GREY, "Nutze '/streetcleaning' um die reiniegung zu beginnen, oder /exit um abzubrechen!");
    }
    else
    {
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid, COLOR_GREY, "Du bist nicht bei der Stadtreiniegung!");
    }}}
    if(IsATaxiFahrerCar(newcar)){
    TogglePlayerControllable(playerid, 0);
    SendClientMessage(playerid, COLOR_GREY, " ");
    SendClientMessage(playerid, COLOR_RED, "_____________ Taxi _____________");
    SendClientMessage(playerid, COLOR_YELLOW, "Wenn du dir Geld durch Taxi fahren dazu verdienen möchtest,");
    SendClientMessage(playerid, COLOR_YELLOW, "gib /fare [Preis] ein oder um abzubrechen /exit");
    SendClientMessage(playerid, COLOR_GREY, " ");
    }
    if(IsABusFahrerCar(newcar)){
    TogglePlayerControllable(playerid, 0);
    SendClientMessage(playerid, COLOR_GREY, " ");
    SendClientMessage(playerid, COLOR_RED, "_____________ Bus _____________");
    SendClientMessage(playerid, COLOR_YELLOW, "Wenn du dir Geld durch Bus fahren dazu verdienen möchtest,");
    SendClientMessage(playerid, COLOR_YELLOW, "gib /fare [Preis] ein oder um abzubrechen /exit");
    SendClientMessage(playerid, COLOR_GREY, " ");
    }
    for(new h = 0; h < sizeof(Karts); h++){
    if(newcar == Karts[h]){
    if(PlayerKarting[playerid] != 1){
    RemovePlayerFromVehicle(playerid);
    SendClientMessage(playerid, COLOR_RED, " Du nimmst an keinem Kartrennen teil! Gib beim gelben 'i' /enter ein.");
    }
    else{
    PlayerInKart[playerid] = 1;
    KartingPlayers ++;
    }}}}
    return 1;
    }


    Danke im vorraus.

    Hey
    Suche einen Script Service welcher mir für 50€ ca. 10 Systeme (Kleine und. Mittelgroße).
    Bei Interrese bitte Per PN melden.
    [Folgendes muss im Thema enthalten sein und darf nicht entfernt werden:]
    ______
    Unverbindlicher Hinweis: Die Sicherheit einer Transaktion kann am besten durch die Einschaltung eines Mittelsmannes gewährleistet werden. Weitere Informationen dazu gibt es hier. H