Beiträge von DerFamer

    if(strcmp(cmd, "/makeleader", true) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pAdmin] < 4)
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Dazu bist du nicht befugt!");
    return 1;
    }
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GOLD, "Fraktion 1: LSPD || Fraktion 2: FBI");
    SendClientMessage(playerid, COLOR_GOLD, "Fraktion 4: Sanitäter || Fraktion 5: LCM || Fraktion 6: Yakuza");
    SendClientMessage(playerid, COLOR_GOLD, "Fraktion 7: Präsident || 8: Hitman || 9: San News");
    SendClientMessage(playerid, COLOR_GOLD, "Fraktion 13: Grove Street || Fraktion 14: Ballas");
    SendClientMessage(playerid, COLOR_GOLD, "Fraktion 18: San Fierro Rifa");
    SendClientMessage(playerid, COLOR_GOLD, "Fraktion 23: Russen Mafia || Fraktion 24: Ordnungsamt");
    return 1;
    }
    new para1;
    new level;
    para1 = ReturnUser(tmp);
    tmp = strtok(cmdtext, idx);
    level = strval(tmp);
    if(level > 24 || level < 0) { SendClientMessage(playerid, COLOR_GREY, " Geh nicht tiefer als Nummer 0, oder höher als Nummer 24!"); return 1; }
    if (PlayerInfo[playerid][pAdmin] >= 4)
    {
    if(IsPlayerConnected(para1))
    {
    if(para1 != INVALID_PLAYER_ID)
    {
    if(PlayerInfo[para1][pMember] > 0 || PlayerInfo[para1][pFMember] < 255)
    {
    SendClientMessage(playerid, COLOR_GREY, " Dieser Player ist bereits/noch in einer Fraktion!");
    return 1;
    }
    if(PlayerInfo[para1][pFrakSperre] > 0)
    {
    SendClientMessage(playerid, COLOR_GREY, " Dieser Spieler hat FraktionsSperre!");
    return 1;
    }
    new ftext[32];
    if(level == 0) { ftext = "Zivilisten"; } else { ftext = Fracs[(level-1)]; }
    GetPlayerName(para1, giveplayer, sizeof(giveplayer));
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), " Du hast %s die Leaderrechte der Fraktion %s gegeben.", giveplayer,ftext);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    format(string, sizeof(string), " Admin %s hat dich zum Leader von der Fraktion %s ernannt.", sendername,ftext);
    SendClientMessage(para1, COLOR_LIGHTBLUE, string);
    SendClientMessage(para1, COLOR_GRAD5, " Du kannst mit /help deine neuen Fraktionsbefehle betrachten");
    SendClientMessage(para1, COLOR_GRAD5, " Vergiss nicht: Du hast nun 4 Wochen Pflicht Leader in dieser Fraktion zu bleiben!");
    SendClientMessage(para1, COLOR_GRAD5, " Wenn du vor Ablauf der Frist rausgeworfen wirst, musst du die Rest der Zeit Zivilist bleiben.");
    gTeam[para1] = 0;
    PlayerInfo[para1][pTeam] = 0;
    PlayerInfo[para1][pRank] = 11;
    PlayerInfo[para1][pLeader] = level;
    PlayerInfo[para1][pGehalt] = 0;
    new iyear, imonth,iday;
    getdate(iyear, imonth, iday);
    format(string, sizeof(string), "%s[Level:%d] wurde von %s Als Leader der Fraktion %s eingeladen (%d-%d-%d)", giveplayer,PlayerInfo[para1][pLevel],sendername,ftext,imonth,iday,iyear);
    LeaderLog(string);
    if(level == 0)
    {
    gTeam[para1] = 3;
    PlayerInfo[para1][pTeam] = 3;
    PlayerInfo[para1][pMember] = 0;
    PlayerInfo[para1][pRank] = 0;
    PlayerInfo[para1][pChar] = 0;
    SetSpawnInfo(para1, gTeam[para1], 2,0.0,0.0,0.0,0,0,0,0,0,0,0);
    PlayerInfo[para1][pModel] = 2;
    MedicBill[para1] = 0;
    SpawnPlayer(para1);
    }
    else if(level == 1) { PlayerInfo[para1][pChar] = 283; gTeam[para1] = 2; PlayerInfo[para1][pTeam] = 2; } // LOS SANTOS POLICE
    else if(level == 2) { PlayerInfo[para1][pChar] = 294; gTeam[para1] = 2; PlayerInfo[para1][pTeam] = 2; } // SAN FIERRO POLICE
    else if(level == 3) { PlayerInfo[para1][pChar] = 287; gTeam[para1] = 2; PlayerInfo[para1][pTeam] = 2; } // Bundeswehr
    else if(level == 4) { PlayerInfo[para1][pChar] = 70; gTeam[para1] = 4; PlayerInfo[para1][pTeam] = 4; } // Medic
    else if(level == 5) { PlayerInfo[para1][pChar] = 223; } // La Cosa Nostra
    else if(level == 6) { PlayerInfo[para1][pChar] = 186; } // Yakuza
    else if(level == 7) { PlayerInfo[para1][pChar] = 295; } // Mayor
    else if(level == 8) { PlayerInfo[para1][pChar] = 230; } // Hitmans
    else if(level == 9) { PlayerInfo[para1][pChar] = 187; } // CNN
    else if(level == 10) { PlayerInfo[para1][pChar] = 189; } // Taxi Cab Company
    else if(level == 11) { PlayerInfo[para1][pChar] = 240; } // Fahrschule
    else if(level == 12) { PlayerInfo[para1][pChar] = 120; } // Fuegos
    else if(level == 13) { PlayerInfo[para1][pChar] = 270; } // Grove Street
    else if(level == 14) { PlayerInfo[para1][pChar] = 104; } // Ballas
    else if(level == 15) { PlayerInfo[para1][pChar] = 185; } // Street Racer
    else if(level == 16) { PlayerInfo[para1][pChar] = 110; } // Los Santos Vagos
    else if(level == 17) { PlayerInfo[para1][pChar] = 115; } // Varios Los Aztecas
    else if(level == 18) { PlayerInfo[para1][pChar] = 115; } // Los Santos Rifa
    else if(level == 19) { PlayerInfo[para1][pChar] = 19; } // Red Soldiers
    else if(level == 20) { PlayerInfo[para1][pChar] = 108; } // Terroristen
    else if(level == 21) { PlayerInfo[para1][pChar] = 47; } //Wheelmen
    else if(level == 22) { PlayerInfo[para1][pChar] = 285; } // S.W.A.T Elite Troop
    else if(level == 23) { PlayerInfo[para1][pChar] = 113; } // russenmafia
    else if(level == 24) { PlayerInfo[para1][pChar] = 71; } // Ordnungsamt
    SetPlayerSkin(para1, PlayerInfo[para1][pChar]);
    }
    }//not connected
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, " ** INFO: Das ist ein Adminbefehl, Du bist nicht befugt!");
    }
    }
    return 1;
    }


    Ich habe noch ein Problem wen ich ein Spieler Kicke wird er ab und zu beim Bauernhof gespawnt und fliegt durch die welt warum?


    if(newstate == PLAYER_STATE_DRIVER)
    {
    if(!PlayerInfo[playerid][pCarLic])//pCarLic
    {
    SendClientMessage(playerid,COLOR_RED,"Du hast kein Führerschein.");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    return 1;
    }
    }
    if(newstate == PLAYER_STATE_DRIVER)
    {
    if(!PlayerInfo[playerid][pFlyLic])//pFlyLic
    {
    SendClientMessage(playerid,COLOR_RED,"Du hast kein Flugschein.");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    return 1;
    }
    }
    if(newstate == PLAYER_STATE_DRIVER)
    {
    if(!PlayerInfo[playerid][pBoatLic])//pBoatLic
    {
    SendClientMessage(playerid,COLOR_RED,"Du hast kein Bootschein.");
    RemovePlayerFromVehicle(playerid);
    TogglePlayerControllable(playerid,false);
    TogglePlayerControllable(playerid,true);
    return 1;
    }
    }



    Warum wird der Spieler nicht vom Auto rausgeworfen wen er kein Führerschein hat?

    Function OnPlayerCommandText(playerid, cmdtext[])
    {
    M_OnPlayerCommandText(playerid,cmdtext);
    new string[256];
    new playermoney;
    new sendername[MAX_PLAYER_NAME];
    new giveplayer[MAX_PLAYER_NAME];
    new playername[MAX_PLAYER_NAME];
    new cmd[256];
    new tmp[256];
    new giveplayerid, moneys, idx;
    new dancestyle;
    cmd = strtok(cmdtext, idx);
    GetPlayerName(playerid,sendername,sizeof(sendername));
    dcmd(gocords,7,cmdtext);
    dcmd(zollcontrol,11,cmdtext);
    dcmd(givedonator,11,cmdtext);
    dcmd(arbobjid,8,cmdtext);
    dcmd(arb,3,cmdtext);
    dcmd(deletearb,9,cmdtext);
    dcmd(deletearbfor,12,cmdtext);
    dcmd(arball,6,cmdtext);
    dcmd(arbforall,9,cmdtext);
    dcmd(arbobj,6,cmdtext);
    else
    {
    SendClientMessage(playerid, COLOR_WITHE, "Der Befehl wurde nicht gefunden. Bitte verwende /help");
    }



    Passt so oder :>

    Function SetPlayerSpawn(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    if(PlayerInfo[playerid][pTot] == 1 && PlayerInfo[playerid][pLevel] > 2 && PlayerInfo[playerid][pJailed] == 0 && PlayerInfo[playerid][pGangJailed] == 0 && PlayerPaintballing[playerid] == 0)
    {
    if(IsPlayerInFrac(playerid, 1))
    {
    SetPlayerColor(playerid,NAMECOLOR_LSCOP);
    }
    else
    {
    SetPlayerColor(playerid,TEAM_HIT_COLOR);
    }
    TogglePlayerControllable(playerid, 0);
    ResetPlayerWeapons(playerid);
    SetPlayerPos(playerid,895.1538,-1119.9735,24.5863);
    SetPlayerCameraPos(playerid, 1223.379028, -1333.354126, 33.809105);
    SetPlayerCameraLookAt(playerid, 910.9415,-1102.5831,34.3235);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerInterior(playerid, 0);
    FreezePlayer(playerid);
    return 1;
    }
    if(PlayerInfo[playerid][pTut] == 0 && !IsPlayerNPC(playerid))
    {
    gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
    FreezePlayer(playerid);
    AtRegestration[playerid] = 1;
    RegistrationStep[playerid] = 1;
    ShowPlayerDialog(playerid,DIALOG_REGSTEP_1,DIALOG_STYLE_MSGBOX,"Geschlecht","Bist du Männlich oder Weiblich?","Männlich","Weiblich");
    //----------------
    SetPlayerPos(playerid,1424.7075,-980.6817,53.9398);
    SetPlayerFacingAngle(playerid, 4.0557);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerCameraPos(playerid, 1431.3164,-975.2504,57.5156);
    SetPlayerCameraLookAt(playerid,1422.5352,-912.2574,76.5841);
    ShowPlayerDialog(playerid,DIALOG_REGSTEP_1,DIALOG_STYLE_MSGBOX,"Geschlecht","Welches Geschlecht bist du?","Männlich","Weiblich");
    }
    if(PlayerInfo[playerid][pTut] == 0 && !IsPlayerNPC(playerid))
    {
    gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
    FreezePlayer(playerid);
    AtRegestration[playerid] = 1;
    RegistrationStep[playerid] = 1;
    //----------------
    SetPlayerPos(playerid,1424.7075,-980.6817,53.9398);
    SetPlayerFacingAngle(playerid, 4.0557);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerCameraPos(playerid,1431.3164,-975.2504,57.5156);
    SetPlayerCameraLookAt(playerid,1422.5352,-912.2574,76.5841);
    }
    new rand;
    new house = PlayerInfo[playerid][pPhousekey];
    if(PlayerPaintballing[playerid] != 0)
    {
    ResetPlayerWeapons(playerid);
    GivePlayerWeapon(playerid, 29, 999);
    GivePlayerWeapon(playerid, 24, 999);
    rand = random(sizeof(PaintballSpawns));
    SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
    return 1;
    }
    if(KnastTime[playerid] > 0)
    {
    SetPlayerToKnast(playerid,Knast[playerid]);
    SendClientMessage(playerid, COLOR_LIGHTRED, " Flüchten bringt nichts, zurück in die Zelle!");
    SetPlayerInterior(playerid,3);
    return 1;
    }
    if(PlayerInfo[playerid][pJailed] == 1)
    {
    SetPlayerInterior(playerid,10);
    SetPlayerPos(playerid,219.4217,110.5207,999.0156);
    SetCameraBehindPlayer(playerid);
    TogglePlayerControllable(playerid, 1);
    SendClientMessage(playerid, COLOR_LIGHTRED, "Flüchten bringt nichts, zurück in die Zelle!");
    return 1;
    }
    if(PlayerInfo[playerid][pJailed] == 2)
    {
    SendClientMessage(playerid, COLOR_LIGHTRED, "Du wurdest wieder ins Alcatraz Gefängnis gebracht!");
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid, 60);
    SetCameraBehindPlayer(playerid);
    TogglePlayerControllable(playerid, 1);
    SetPlayerPos(playerid, 1022.0858,-5.1644,4.2630);
    SetPlayerVirtualWorld(playerid, 0);
    return 1;
    }
    if(PlayerInfo[playerid][pGangJailed] == 1)
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerPos(playerid, 218.9510,-231.8540,1.7786);
    SetCameraBehindPlayer(playerid);
    TogglePlayerControllable(playerid, 1);
    SendClientMessage(playerid, COLOR_LIGHTRED, " Du befindest dich noch im GangJail!");
    return 1;
    }
    if(house != 255)
    {
    if(SpawnChange[playerid] == 2) //If 1, then you get to your house, else spawn somewhere else
    {
    GivePlayerWeapons(playerid);
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid,HouseInfo[house][hInt]);
    SetPlayerPos(playerid,HouseInfo[house][hExitx],HouseInfo[house][hExity],HouseInfo[house][hExitz]);
    PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
    PlayerInfo[playerid][pLocal] = house;
    SetPlayerVirtualWorld(playerid,house);
    return 1;
    }
    }
    if(SpawnChange[playerid] == 3)
    {
    if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)//Las Venturas Yakuza Spawn -> Fertig
    {
    SetPlayerPos(playerid,2324.4922,-1149.0463,1050.7101);
    SetPlayerInterior(playerid,12);
    SetPlayerVirtualWorld(playerid,9);
    SetPlayerFacingAngle(playerid,88.3555);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) //Los Santos Grove Street Spawn -> Fertig
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid,8);
    SetPlayerVirtualWorld(playerid,5);
    SetPlayerPos(playerid,2807.6880,-1174.2935,1025.5703);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) //Los Santos Ballas Spawn -> Fertig
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,318.6295,1115.3989,1083.8828);
    SetPlayerInterior(playerid,5);
    SetPlayerVirtualWorld(playerid,6);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18) //San Fierro Rifa Spawn -> Fertig
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2807.6880,-1174.2935,1025.5703);
    SetPlayerInterior(playerid,8);
    SetPlayerVirtualWorld(playerid,8);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//Los Santos Police Department Spawn -> NFertig
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid, 1529.2698,-1665.2559,6.2188);
    SetPlayerFacingAngle(playerid,267.6532);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) //FBI
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerPos(playerid,-1617.0476,676.5656,-4.9063);
    SetPlayerFacingAngle(playerid,359.1006);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//Las Venturas Police Department Spawn -> Feritg
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 2263.4172,2446.4880,3.5313);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Los Santos Medical Spawn -> Fertig
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,1494.4487,1304.0544,1093.2891);
    SetPlayerFacingAngle(playerid,88.8873);
    SetPlayerInterior(playerid,3);
    for(new iosa2 = 0; iosa2 < MAX_PLAYERS; iosa2++)
    {
    SetPlayerMarkerForPlayer(iosa2, playerid, NAMECOLOR_MEDIC);
    }
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//La Cosa Nostra Spawn -> Entfernt
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerHealth(playerid,100);
    SetPlayerPos(playerid,2107.4829,1004.1138,11.0651);
    SetPlayerFacingAngle(playerid,1.7557);
    return 1;
    }
    if(PlayerInfo[playerid][pLeader] == 7)//San Andreas Präsident Spawn -> Fertig
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 1261.3036,-785.4796,1091.9063);
    SetPlayerInterior(playerid, 5);
    SetPlayerVirtualWorld(playerid, 4);
    return 1;
    }
    if(PlayerInfo[playerid][pMember] == 7)//San Andreas Präsident Bodyguard Spawn -> Nicht Fertig
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,1274.0594,-790.8364,1089.9316);
    SetPlayerInterior(playerid, 5);
    SetPlayerVirtualWorld(playerid, 4);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) //Las Venturas Hitman -> Fertig
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, -2636.7258,1402.9813,906.4609);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,7);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) //Las Venturas News Reporter Spawn -> Fertig
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,-308.4424,1538.4647,75.5625);
    SetPlayerFacingAngle(playerid, 179.6135);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10) //Los Santos Taxi Company Spawn -> Entfernt
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid, 1025.2363,-1358.8267,13.7266);
    SetPlayerFacingAngle(playerid,243.8503);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12) //Fuegos -> Entfernt
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,-2642.3894,1398.7834,906.4666);
    SetPlayerFacingAngle(playerid,51.4238);
    SetPlayerInterior(playerid,3);
    PlayerInfo[playerid][pInt] = 3;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15) //Street Racer -> Entfernt
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,-2032.5929,161.4476,29.046);
    SetPlayerFacingAngle(playerid,263.0450);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetPlayerVirtualWorld(playerid,0);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16) //Los Santos Vagos -> Entfernt
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerFacingAngle(playerid,88.9785);
    SetPlayerInterior(playerid,8);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17) //Varios Los Aztecas -> Entfernt
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerFacingAngle(playerid,134.9023);
    SetPlayerInterior(playerid,8);
    PlayerInfo[playerid][pInt] = 8;
    SetPlayerVirtualWorld(playerid,9);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19) //RS SPAWN -> Entfernt
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,234.1262,1081.6293,1084.2415);
    SetPlayerFacingAngle(playerid,179.4645);
    SetPlayerInterior(playerid,6);
    SetPlayerVirtualWorld(playerid,5);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20) //Terroristen -> Entfernt
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2808.2705,-1169.3121,1025.5703);
    SetPlayerFacingAngle(playerid,179.9684);
    SetPlayerInterior(playerid,8);
    SetPlayerVirtualWorld(playerid,12);
    return 1;
    }
    if(IsPlayerInFrac(playerid, 21)) //Wheelman Spawn -> Entfernt
    {
    SetPlayerPos(playerid, 2562.6875,-1282.1237,1065.3672);
    SetPlayerInterior(playerid,2);
    SetPlayerVirtualWorld(playerid,0);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22) //SWAT -> Entfernt
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid,10);
    SetPlayerPos(playerid,216.5056,168.7749,1003.0234);
    SetPlayerFacingAngle(playerid,273.0);
    SetPlayerInterior(playerid, 3);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 23 || PlayerInfo[playerid][pLeader] == 23) //Las Venturas Russen Maifa Spawn -> Fertig
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2324.4922,-1149.0463,1050.7101);
    SetPlayerFacingAngle(playerid,46.0943);
    SetPlayerVirtualWorld(playerid,10);
    SetPlayerInterior(playerid,12);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 24 || PlayerInfo[playerid][pLeader] == 24) //Las Venturas Ordnungsamt Spawn -> Fertig
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,322.2144,302.7917,999.1484,179);
    SetPlayerInterior(playerid,5);
    GivePlayerWeapon(playerid, 24, 50);
    return 1;
    }
    if ((gTeam[playerid]) == 1)
    {
    SetPlayerToTeamColor(playerid);
    rand = random(sizeof(gMedPlayerSpawns));
    SetPlayerPos(playerid, gMedPlayerSpawns[rand][0], gMedPlayerSpawns[rand][1], gMedPlayerSpawns[rand][2]); // Warp the player
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    else if(SpawnChange[playerid] == 0) //Hier ist der Spawn Hauptbahnhof
    {
    SetPlayerPos(playerid,1759.8682,-1895.6047,13.5612);
    SetPlayerFacingAngle(playerid,267.9915);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    PlayerInfo[playerid][pPhoneBook] = 1;
    return 1;
    }
    }
    }
    return 1;
    }


    Ja die Posen Sind richtig bevor ich Spawnchange gemacht habe hat es geklappt!

    -> Hauptbahnhof Buggy -> Passiert Einfach nichts -> und nun wen Spieler onlin kommen fallen sie vom Himmel weil Sie natürlich am Newbspawn spawnen sollten!
    -> Wohnung Funktioniert
    -> Fraktion Funtioniert

    ocmd:undercover(playerid, params[])
    {
    if(!IsPlayerInRangeOfPoint(playerid,4.0,255.0789,77.4782,1003.6406) || IsPlayerInRangeOfPoint(playerid,4.0,197.8206,168.2515,1003.0234) || IsPlayerInRangeOfPoint(playerid,4.0,225.0941,121.8315,999.0803)) return SendClientMessage(playerid, COLOR_RED, "Du bist nicht am Punkt um Undercover zu gehen!");
    new pcklSkin;
    if(sscanf(params,"i",pcklSkin))return SendClientMessage(playerid, COLOR_YELLOW, "Benutzung: /undercover [Skin(2-251)]");
    if(pcklSkin < 1 && pcklSkin > 251)return SendClientMessage(playerid, COLOR_RED, "Falsche Skin ID!");
    SetPlayerSkin(playerid, pcklSkin);
    SetPlayerColor(playerid, COLOR_WHITE);
    SendClientMessage(playerid, COLOR_GREEN, "••• Du bist nun Undercover! •••");
    return 1;
    }


    Was hab ich da falsch gemacht der Spieler kann überfall Undercover gehen?

    if(dialogid == DIALOG_AUSRUESTENFBI)
    {
    if(response)
    {
    new sendername[MAX_PLAYER_NAME];
    new string[64];
    if(listitem==0)
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s nimmt seine Waffen aus dem Schrank und meldet sich zum Dienst.", sendername);
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    GivePlayerWeapon(playerid, 3, 1);
    }
    if(listitem==1)
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s nimmt seine Waffen aus dem Schrank und meldet sich zum Dienst.", sendername);
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    GivePlayerWeapon(playerid, 24, 100);
    }
    if(listitem==2)
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s nimmt seine Waffen aus dem Schrank und meldet sich zum Dienst.", sendername);
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    GivePlayerWeapon(playerid, 25, 100);
    }
    if(listitem==3)
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s nimmt seine Waffen aus dem Schrank und meldet sich zum Dienst.", sendername);
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    GivePlayerWeapon(playerid, 29, 100);
    }
    if(listitem==4)
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s nimmt seine Waffen aus dem Schrank und meldet sich zum Dienst.", sendername);
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    GivePlayerWeapon(playerid, 34, 100);
    }
    if(listitem==5)
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s nimmt seine Waffen aus dem Schrank und meldet sich zum Dienst.", sendername);
    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    GivePlayerWeapon(playerid, 41, 100);
    }
    ShowPlayerDialog(playerid, DIALOG_AUSRUESTENFBI, DIALOG_STYLE_LIST, "Ausrüstung", "Schlagstock\nDeagle\nShotgun\nMP5\nSniper\nSpray", "Auswählen","");
    }
    }




    Habe es hin bekommen !


    Warum wird das ganze nicht ausgeschreiebn es hört bei %s nimmt seine Waffen aus dem Schrank und meldet sic auf gehört aber aber es müsste ganz ausgeschrieben werden?
    Und wie mache ich wen der Spieler /ausruesten eingibt das die Meldung nur einmal kommt und nicht 6x

    ocmd:ausruesten(playerid,params[])
    {
    #pragma unused params
    if(IsACop(playerid))
    {
    if(IsPlayerInRangeOfPoint(playerid,4.0,255.0789,77.4782,1003.6406) || IsPlayerInRangeOfPoint(playerid,4.0,197.8206,168.2515,1003.0234))//Punkte für COPS/A.C.A.B.
    {
    ShowPlayerDialog(playerid, DIALOG_AUSRUESTENCOP, DIALOG_STYLE_LIST, "Ausrüstung", "Schlagstock\nDeagle\nShotgun\nMP5\nRifle\nSpray", "Auswählen","");
    return 1;
    }
    else if(IsPlayerInRangeOfPoint(playerid,4.0,225.0941,121.8315,999.0803))//Punkt für FBI
    {
    ShowPlayerDialog(playerid, DIALOG_AUSRUESTENFBI, DIALOG_STYLE_LIST, "Ausrüstung", "Schlagstock\nDeagle\nShotgun\nMP5\nSniper\nSpray", "Auswählen","");
    return 1;
    }
    return 1;
    }
    else if(!IsACop(playerid)){
    if(IsPlayerInRangeOfPoint(playerid,4.0,318.6295,1115.3989,1083) || IsPlayerInRangeOfPoint(playerid,4.0,2807.6880,-1174.2935,1025) || IsPlayerInRangeOfPoint(playerid,4.0,-2636.6443,1403.2904,906) || IsPlayerInRangeOfPoint(playerid,4.0,2324.4922,-1149.0463,1050) || IsPlayerInRangeOfPoint(playerid,4.0,-2636.7258,1402.9813,906) || IsPlayerInRangeOfPoint(playerid,4.0,2807.6880,-1174.2935,1025)){
    ShowPlayerDialog(playerid,DIALOG_AUSRUESTEN,DIALOG_STYLE_LIST,"Ausrüstung", "Deagle (700$)\nShotgun (400$)\nMP5 (800$)\nAK47 (900$)","Auswählen","");return 1;}
    else SendClientMessage(playerid, COLOR_RED, "Du bist an keinem Waffenschrank!");
    return 1;
    }
    return 1;
    }



    Hallo,


    Ich habe ein Problem die Posen wo der Spieler sein sollte sind richtig wen ich dort bin kann ich nicht /ausrusten benutzen es kommt immer das ich an kein Waffenschrank bin.
    An was kann das Liegen?

    Hallo ich möchte ein System machen wen der Spieler kein Fahrzeugschein hat das der Spieler sofort aus dem Fahrzeug geschmissen wird wie Funktioniert das :>


    Danke im vorraus

    if(PlayerInfo[playerid][pSpawnChange] == 2)
    {
    if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)//Las Venturas Yakuza Spawn -> Fertig
    {
    SetPlayerPos(playerid,2324.4922,-1149.0463,1050.7101);
    SetPlayerInterior(playerid,12);
    SetPlayerVirtualWorld(playerid,9);
    SetPlayerFacingAngle(playerid,88.3555);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13) //Los Santos Grove Street Spawn -> Fertig
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid,8);
    SetPlayerVirtualWorld(playerid,5);
    SetPlayerPos(playerid,2807.6880,-1174.2935,1025.5703);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14) //Los Santos Ballas Spawn -> Fertig
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,318.6295,1115.3989,1083.8828);
    SetPlayerInterior(playerid,5);
    SetPlayerVirtualWorld(playerid,6);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18) //San Fierro Rifa Spawn -> Fertig
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2807.6880,-1174.2935,1025.5703);
    SetPlayerInterior(playerid,8);
    SetPlayerVirtualWorld(playerid,8);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//Los Santos Police Department Spawn -> NFertig
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid, 1529.2698,-1665.2559,6.2188);
    SetPlayerFacingAngle(playerid,267.6532);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) //FBI
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    SetPlayerPos(playerid,-1617.0476,676.5656,-4.9063);
    SetPlayerFacingAngle(playerid,359.1006);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//Las Venturas Police Department Spawn -> Feritg
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 2263.4172,2446.4880,3.5313);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }



    if(dialogid == DIALOG_SPAWNCHANGE)
    {
    if(response)
    {
    if(listitem == 0)
    {
    SendClientMessage(playerid, COLOR_GREEN, "Du Spawnst absofort am Hauptbahnhof LS");
    SpawnChange[playerid] = 0;
    }
    if(listitem == 1)
    {
    SendClientMessage(playerid,COLOR_GREEN,"Du Spawnst absofort an deiner Wohnung, sofern du eine besitzt");
    SpawnChange[playerid] = 1;
    }
    if(listitem == 2)
    {
    if(PlayerInfo[playerid][pMember] == 0 && PlayerInfo[playerid][pLeader] == 0) return SendClientMessage(playerid,COLOR_RED,"Du bist kein Mitglied einer Fraktion, Gang oder Mafia");
    SendClientMessage(playerid,COLOR_GREEN,"Du spawnst absofort in der Base deiner Fraktion.");
    PlayerInfo[playerid][pSpawnChange] = 2;
    }
    return 1;
    }
    }


    Es Funktioniert nicht!