Beiträge von DerFamer

    SetPlayerHealth(playerid, 10000.0);
    SendClientMessage(playerid, 0xFF0000AA, "Du hast 5 Sekunden Anti-Spawn Kill-Schutz");
    SetPlayerChatBubble(playerid, "Anti-Spawnkill", 0xFF0000AA, 100.0, 5000);
    SetTimerEx("AntiSpawnkill",5000,0,"i",playerid);



    Mein Timer und ich hab jetzt ein Textdraw erstellt:




    Spawnkill = TextDrawCreate(14.800031, 322.906799, "Anti-Spawnkill");
    TextDrawLetterSize(Spawnkill, 0.400000, 1.600000);
    TextDrawAlignment(Spawnkill.1);
    TextDrawColor(Spawnkill,-65281);
    TextDrawSetShadow(Spawnkill, 0);
    TextDrawSetOutline(Spawnkill, 0);
    TextDrawBackgroundColor(Spawnkill, 255);
    TextDrawFont(Spawnkill, 2);
    TextDrawSetProportional(Spawnkill, 1);
    TextDrawSetShadow(Spawnkill, 0);

    ocmd:oreport(playerid,params[])
    {
    new pID, string[128];
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED,"Du bist kein Admin und hast nicht das Recht Reports zu öffnen!");
    if(sscanf(params,"u",pID)) return SendClientMessage(playerid, COLOR_WHITE,"/oreport [ID]");
    format(string,sizeof(string),"** Administrator %s hat deinen Report geöffnet und bearbeitet ihn nun. Der Live Chat wurde aktiviert, nutze /rc!",Name(playerid));
    SendClientMessage(pID,COLOR_ORANGE,string);
    SendClientMessage(playerid,ORANGE,"Du hast den Report geöffnet und beginnst den Live Chat, du schreibst mit /sup!");
    SetPVarInt(playerid,"LiveChat",1);
    SetPVarInt(pID,"LiveChat",1);
    SetPVarInt(pID,"Report",0);
    SetPVarInt(playerid,"RPartner",pID);
    SetPVarInt(pID,"RPartner",playerid);
    return 1;
    }
    ocmd:sreport(playerid,params[])
    {
    new pID, string[128];
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"Du bist kein Admin und hast nicht das Recht Reports zu schließen!");
    if(sscanf(params,"u",pID)) return SendClientMessage(playerid,COLOR_WHITE,"/sreport [ID]");
    format(string,sizeof(string),"** Administrator %s hat den Livechat beendet.",Name(playerid));
    SendClientMessage(pID,ORANGE,string);
    SendClientMessage(playerid,COLOR_ORANGE,"Du hast den Report geschlossen!");
    SetPVarInt(playerid,"LiveChat",0);
    SetPVarInt(pID,"LiveChat",0);
    DeletePVar(playerid,"RPartner");
    DeletePVar(pID,"RPartner");
    return 1;
    }
    ocmd:lreport(playerid,params[])
    {
    new pID, string[128];
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"Du bist kein Admin und hast nicht das Recht Reports zu schließen!");
    if(sscanf(params,"u",pID)) return SendClientMessage(playerid,COLOR_WHITE,"/lreport [ID]");
    format(string,sizeof(string),"** Administrator %s hat deinen Report gelöscht!",Name(playerid));
    SendClientMessage(pID,COLOR_ORANGE,string);
    SendClientMessage(playerid,COLOR_ORANGE,"Du hast den Report gelöscht!");
    DeletePVar(pID,"Report");
    return 1;
    }
    ocmd:rc(playerid,params[])
    {
    new text[128],string[128],string1[128];
    if(GetPVarInt(playerid,"LiveChat") != 1) return SendClientMessage(playerid,COLOR_RED,"Du bist in keinem Live Chat!");
    if(sscanf(params,"s",text)) return SendClientMessage(playerid,COLOR_WHITE,"/rc [text]");
    format(string,sizeof(string),"* (( %s: %s ))*",Name(playerid),text);
    SendClientMessage(GetPVarInt(playerid,"RPartner"),COLOR_GREEN,string);
    format(string1,sizeof(string1),"* (( %s: %s ))*",Name(playerid),text);
    SendClientMessage(playerid,COLOR_GREEN,string1);
    return 1;
    }
    ocmd:sup(playerid,params[])
    {
    new text[128],string[128],string1[128];
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"Du bist kein Admin und hast nicht das Recht den Admin Report Chat zu nutzen!");
    if(GetPVarInt(playerid,"LiveChat") != 1) return SendClientMessage(playerid,COLOR_RED,"Du bist in keinem Live Chat!");
    if(sscanf(params,"s",text)) return SendClientMessage(playerid,COLOR_WHITE,"/sup [text]");
    format(string,sizeof(string),"* (( %s: %s ))*",Name(playerid),text);
    SendClientMessage(GetPVarInt(playerid,"RPartner"),COLOR_GREEN,string);
    format(string1,sizeof(string1),"* (( %s: %s ))*",Name(playerid),text);
    SendClientMessage(playerid,COLOR_GREEN,string1);
    return 1;
    }


    Warum kann man Die Befehle nur mit Rcon ausführen?

    C:\Windows\Vss\German v1.1\German[Scripts]\German Reallife v1.2\gamemodes\German.pwn(536) : warning 201: redefinition of constant/macro (symbol "BLAU")
    C:\Windows\Vss\German v1.1\German[Scripts]\German Reallife v1.2\gamemodes\German.pwn(539) : warning 201: redefinition of constant/macro (symbol "ROT")
    C:\Windows\Vss\German v1.1\German[Scripts]\German Reallife v1.2\gamemodes\German.pwn(13049) : warning 202: number of arguments does not match definition
    C:\Windows\Vss\German v1.1\German[Scripts]\German Reallife v1.2\gamemodes\German.pwn(13639) : error 017: undefined symbol "BizzInfo"
    C:\Windows\Vss\German v1.1\German[Scripts]\German Reallife v1.2\gamemodes\German.pwn(13639) : error 036: empty statement
    C:\Windows\Vss\German v1.1\German[Scripts]\German Reallife v1.2\gamemodes\German.pwn(13639) : error 017: undefined symbol "h"
    C:\Windows\Vss\German v1.1\German[Scripts]\German Reallife v1.2\gamemodes\German.pwn(13639) : fatal error 107: too many error messages on one line







    #define BLAU "{0080FF}" //farbe für Pickup | BLAU
    #define WEISS "{FFFFFF}" //Farbe für Pickup | WEISS
    #define BLUE 0x0000FFFF
    #define ROT 0xE10000FF

    #define F_G 0x24D900F6 //helles Grün
    #define F_O 0xF6B400F6 //Neues Orange
    #define blau 0x0085C4F6
    #define NB 0x005B9BF6 // Neues Blau
    #define NY 0xF5DEB3AA // Neues Gelb
    #define RED_NEW 0xF60000F6
    #define BLUE_NEW 0x0000CAF6
    #define GREEN 0x21DD00FF
    #define ORANGE 0xF97804FF
    #define ROT 0xE60000FF
    #define GRUEN 0x05FF00FF
    #define GELB 0xFFFF00FF
    #define BLAU 0x000FFFFF
    #define RED 0xE60000FF
    #define CHECKPOINT_NONE 0
    #define CHECKPOINT_HOME 12
    #define COLOR_GOLD 0xB8860BAA
    #define COLOR_GRAD1 0xB4B5B7FF
    #define COLOR_GRAD2 0xBFC0C2FF
    #define COLOR_GRAD3 0xCBCCCEFF
    #define COLOR_GRAD4 0xD8D8D8FF
    #define COLOR_GRAD5 0xE3E3E3FF
    #define COLOR_GRAD6 0xF0F0F0FF
    #define COLOR_ORANGE 0xFF9933FF
    #define COLOR_BROWN 0x330000FF
    #define COLOR_BLACK 0x000000FF
    #define COLOR_GREY 0xAFAFAFAA
    #define COLOR_GREEN 0x33AA33AA
    #define COLOR_RED 0xAA3333AA
    #define COLOR_BLUE 0x000080AA
    #define COLOR_LIGHTRED 0xFF6347AA
    #define COLOR_LIGHTBLUE 0x33CCFFAA
    #define COLOR_LIGHTGREEN 0x9ACD32AA
    #define COLOR_YELLOW 0xFFFF00AA
    #define COLOR_YELLOW2 0xF5DEB3AA
    #define COLOR_WHITE 0xFFFFFFAA
    #define COLOR_WHITEE 0xFFFFFFAA
    #define COLOR_FADE1 0xE6E6E6E6
    #define COLOR_FADE2 0xC8C8C8C8
    #define COLOR_FADE3 0xAAAAAAAA
    #define COLOR_FADE4 0x8C8C8C8C
    #define COLOR_FADE5 0x6E6E6E6E
    #define COLOR_PURPLE 0xC2A2DAAA
    #define COLOR_DBLUE 0x2641FEAA
    #define COLOR_ALLDEPT 0xFF8282AA
    #define COLOR_NEWS 0xFFA500AA
    #define COLOR_OOC 0xE0FFFFAA
    #define COLOR_AONDONNN 0xF5DEB3AA
    #define YELLOW 0xFFFF00FF
    #define TEAM_CYAN 1
    #define TEAM_BLUE 2
    #define TEAM_GREEN 3
    #define TEAM_ORANGE 4
    #define TEAM_COR 5
    #define TEAM_BAR 6
    #define TEAM_TAT 7
    #define TEAM_CUN 8
    #define TEAM_STR 9
    #define TEAM_HIT 10
    #define TEAM_ADMIN 17
    #define OBJECTIVE_COLOR 0x64000064
    #define TEAM_GREEN_COLOR 0xFFFFFFAA
    #define TEAM_JOB_COLOR 0xFFB6C1AA
    #define TEAM_HIT_COLOR 0xFFFFFF00
    #define TEAM_BLUE_COLOR 0x8D8DFF00
    #define COLOR_ADD 0x63FF60AA
    #define TEAM_Grove_COLOR 0x00D900C8
    #define TEAM_Vagos_COLOR 0xFFC801C8
    #define TEAM_Ballas_COLOR 0xD900D3C8
    #define TEAM_Aztecas_COLOR 0x01FCFFC8
    #define TEAM_CYAN_COLOR 0xFF8282AA
    #define TEAM_ORANGE_COLOR 0xFF830000
    #define TEAM_COR_COLOR 0x39393900
    #define TEAM_BAR_COLOR 0x00D90000
    #define TEAM_TAT_COLOR 0xBDCB9200
    #define TEAM_CUN_COLOR 0xD900D300
    #define TEAM_STR_COLOR 0x01FCFF00
    #define TEAM_ADMIN_COLOR 0x00808000
    #define COLOR_INVIS 0xAFAFAF00
    #define COLOR_SPEC 0xBFC0C200

    stock LoadBizz(bizid)
    {
    new BizzDatei[64];
    format(BizzDatei,64,"/Bizz/%d.txt",bizid);
    if(!fexist(BizzDatei))return 0;
    bInfo[bizid][PosX] = dini_Float(BizzDatei,"PosX");
    bInfo[bizid][PosY] = dini_Float(BizzDatei,"PosY");
    bInfo[bizid][PosZ] = dini_Float(BizzDatei,"PosZ");
    bInfo[bizid][Level] = dini_Int(BizzDatei,"Level");
    bInfo[bizid][Konto] = dini_Int(BizzDatei,"Konto");
    bInfo[bizid][Preis] = dini_Int(BizzDatei,"Preis");
    bInfo[bizid][Interior] = dini_Int(BizzDatei,"Interior");
    bInfo[bizid][Besetzt] = dini_Int(BizzDatei,"Besetzt");
    format(bInfo[bizid][Besitzer],64,"%s",dini_Get(BizzDatei,"Besitzer"));
    if(bInfo[bizid][Besetzt] == 0)
    {
    bInfo[bizid][Pickup] = CreatePickup(1272 ,23,bInfo[bizid][PosX],bInfo[bizid][PosY],bInfo[bizid][PosZ],0);
    new string[196];
    format(string,196,""BLAU"Besitzer: "WEISS"Keiner\n"BLAU"Preis: "WEISS"%d$\n"BLAU"Level: "WEISS"%d\nZum Kaufen "WEISS"/buyfirma",bInfo[bizid][Preis],bInfo[bizid][Level]); //3203
    bInfo[bizid][Label] = Create3DTextLabel(string,BLUE,bInfo[bizid][PosX],bInfo[bizid][PosY],bInfo[bizid][PosZ],20,0,0);
    return print("Das Biz wurde erfolgreich geladen");
    }
    if(bInfo[bizid][Besetzt] == 1)
    {
    bInfo[bizid][Pickup] = CreatePickup(1239 ,23,bInfo[bizid][PosX],bInfo[bizid][PosY],bInfo[bizid][PosZ],0);
    new string[196];
    format(string,196,""BLAU"Besitzer: "WEISS"%s\nZum Betreten: "BLAU"Z",bInfo[bizid][Besitzer]);
    bInfo[bizid][Label] = Create3DTextLabel(string,BLUE,bInfo[bizid][PosX],bInfo[bizid][PosY],bInfo[bizid][PosZ],20,0,0);
    return print("Das Biz wurde erfolgreich geladen");
    }
    return 1;
    }



    @Jeffry


    C:\Windows\Vss\German v1.1\German[Scripts]\German Reallife v1.2\gamemodes\German.pwn(3203) : error 001: expected token: "-string end-", but found "-identifier-"C:\Windows\Vss\German v1.1\German[Scripts]\German Reallife v1.2\gamemodes\German.pwn(3203) : error 001: expected token: "-string end-", but found "-identifier-"C:\Windows\Vss\German v1.1\German[Scripts]\German Reallife v1.2\gamemodes\German.pwn(3203) : warning 215: expression has no effectC:\Windows\Vss\German v1.1\German[Scripts]\German Reallife v1.2\gamemodes\German.pwn(3203) : error 001: expected token: ";", but found "-identifier-"C:\Windows\Vss\German v1.1\German[Scripts]\German Reallife v1.2\gamemodes\German.pwn(3203) : fatal error 107: too many error messages on one line

    Function OnPlayerDeath(playerid, killerid, reason)
    {
    M_OnPlayerDeath(playerid,killerid,reason);
    new Float:xPosi[3];
    GetPlayerPos(playerid, xPosi[0],xPosi[1],xPosi[2]);
    TodesIcon[playerid] = CreatePickup(1254, 1, xPosi[0], xPosi[1], xPosi[2]);
    if(PlayerInfo[playerid][pHeadValue] > 0)
    {
    if(IsPlayerConnected(killerid))
    {
    if(PlayerInfo[killerid][pMember] == 8 || PlayerInfo[killerid][pLeader] == 8)
    {
    ConsumingMoney[killerid] = 1;
    new name[MAX_PLAYER_NAME];
    new killer[MAX_PLAYER_NAME];
    new string[128];
    GetPlayerName(killerid, killer, sizeof(killer));
    GetPlayerName(playerid, name, sizeof(name));
    FraktionsKasse[7] += PlayerInfo[playerid][pHeadValue]/2;
    GivePlayerMoney(killerid, PlayerInfo[playerid][pHeadValue]/2);
    // Neu
    if(ReturnPlayerID(PlayerInfo[playerid][pAuftraggeber]) != INVALID_PLAYER_ID && IsPlayerConnected(ReturnPlayerID(PlayerInfo[playerid][pAuftraggeber])))
    {
    format(string,128, "Hitman %s hat dein Contract %s getötet.", killer, name);
    SendClientMessage(ReturnPlayerID(PlayerInfo[playerid][pAuftraggeber]), COLOR_YELLOW, string);
    }
    format(string,128,"< < < < Hitman %s hat den Auftrag an %s erfüllt und bekommt: $%d > > > >",killer,name,PlayerInfo[playerid][pHeadValue]/2);
    SendFamilyMessage(8, COLOR_YELLOW, string);
    PlayerInfo[playerid][pHeadValue] = 0;
    }
    }
    }
    if(IsACop(killerid))
    {
    if(WantedLevel[playerid] >= 1)
    {
    GivePlayerMoney(playerid,-WantedLevel[playerid]*1000);
    PlayerInfo[killerid][pGehalt] += WantedLevel[playerid]*500;
    ResetPlayerWeapons(playerid);
    new string[200];
    if(PlayerInfo[killerid][pMember]==1||PlayerInfo[killerid][pLeader]==1)
    {
    format(string, sizeof(string), "< < < < LSPD Officer %s hat den Verbrecher %s getötet > > > >", SpielerName(killerid), SpielerName(playerid));
    OOCNews(COLOR_RED, string);
    }
    else if(PlayerInfo[killerid][pMember]==2||PlayerInfo[killerid][pLeader]==2)
    {
    format(string, sizeof(string), "< < < < FBI Agent %s hat den Verbrecher %s getötet > > > >", SpielerName(killerid), SpielerName(playerid));
    OOCNews(COLOR_RED, string);
    }
    else if(PlayerInfo[killerid][pMember]==3||PlayerInfo[killerid][pLeader]==3)
    {
    format(string, sizeof(string), "< < < < Bundeswehr Soldat %s hat den Verbrecher %s getötet > > > >", SpielerName(killerid), SpielerName(playerid));
    OOCNews(COLOR_RED, string);
    }
    else if(PlayerInfo[killerid][pMember]==22||PlayerInfo[killerid][pLeader]==22)
    {
    format(string, sizeof(string), "< < < < SWAT Agent %s hat den Verbrecher %s getötet > > > >", SpielerName(killerid), SpielerName(playerid));
    OOCNews(COLOR_RED, string);
    }
    if(LSPDZellen == 0)//zelle1
    {
    SetPlayerInterior(playerid, 0);
    UnFreezePlayer(playerid);
    PlayerCuffed[playerid] = 0;
    SetPlayerPos(playerid,227.3844,111.5490,999);
    LSPDZellen += 1;
    }
    if(LSPDZellen == 1)//zelle2
    {
    SetPlayerInterior(playerid, 0);
    UnFreezePlayer(playerid);
    PlayerCuffed[playerid] = 0;
    SetPlayerPos(playerid,223.5090,111.4179,999);
    LSPDZellen += 1;
    }
    if(LSPDZellen == 2)//zelle3
    {
    SetPlayerInterior(playerid, 0);
    UnFreezePlayer(playerid);
    PlayerCuffed[playerid] = 0;
    SetPlayerPos(playerid,219.5361,111.3571,999);
    LSPDZellen += 1;
    }
    if(LSPDZellen == 3)//Zelle4
    {
    SetPlayerInterior(playerid, 0);
    UnFreezePlayer(playerid);
    PlayerCuffed[playerid] = 0;
    SetPlayerPos(playerid,215.5814,111.1412,999);
    LSPDZellen += 1;
    }
    PlayerInfo[playerid][pJailTime] = WantedLevel[playerid] * 240;
    new spr[100];
    format(spr,sizeof(spr),"Du wurdest für %d Minuten und einer Geldstrafe von %d$ eingesperrt",WantedLevel[playerid] * 4,WantedLevel[playerid] * 1000);
    SendClientMessage(playerid,COLOR_LIGHTBLUE,spr);
    PlayerInfo[playerid][pJailed] = 1;
    PlayerInfo[playerid][pArrested] += 1;
    SetPlayerInterior(playerid, 6);
    SetPlayerFree(playerid,playerid, "Verhaftet");
    WantedPoints[playerid] = 0;
    WantedLevel[playerid] = 0;
    SetPlayerWantedLevel(playerid,0);
    }
    }
    new name[MAX_PLAYER_NAME];
    new string[256];
    PlayerInfo[playerid][pInvWeapon] = 0;
    PlayerInfo[playerid][pInvAmmo] = 0;
    PlayerInfo[playerid][pInvWeapon2] = 0;
    PlayerInfo[playerid][pInvAmmo2] = 0;
    FrakMatsHolding[playerid] = 0;
    /*new playercash;
    new victimteam;
    new killerteam;*/
    if(PlayerInfo[playerid][pLevel] > 2 && KHSperre[playerid] == 0 && PlayerInfo[playerid][pJailed] == 0 && PlayerInfo[playerid][pGangJailed] == 0 && PlayerPaintballing[playerid] == 0)
    {
    PlayerInfo[playerid][pTot] = 1;
    }
    if (!IsACop(killerid) && reason == 49)
    {
    SetPlayerCriminal(killerid,255, "Fahrerflucht");
    }
    if(gPlayerUsingLoopingAnim[playerid])
    {
    gPlayerUsingLoopingAnim[playerid] = 0;
    TextDrawHideForPlayer(playerid,txtAnimHelper);
    }
    if(BlindFold[playerid] == 1)
    {
    BlindFold[playerid] = 0;
    }
    if(PlayerInfo[playerid][pMauled] == 1)
    {
    PlayerInfo[playerid][pMauled] = 0;
    }
    InCargo[playerid] = 0; InLevi[playerid] = 0; InEnfo[playerid] = 0;
    if(FirstSpawn[playerid] == 1)
    {
    FirstSpawn[playerid] = 0;
    }
    if(IsBlacklist[playerid]==1)
    {
    ClearBlack(playerid);
    IsBlacklist[playerid]=0;
    }
    if(GetPVarInt(playerid,"Flugp") == 1)
    {
    new car = GetPlayerVehicleID(playerid);
    DestroyVehicle(car);
    SendClientMessage(playerid,COLOR_RED,"Da du gestorben bist hast du die Prüfung nicht bestanden !");
    SetPVarInt(playerid,"Flugp",0);
    DisablePlayerRaceCheckpoint(playerid);
    PlayerInfo[playerid][pFlyLic] = 0;
    }
    if(GetPVarInt(playerid,"Linie") == 1)
    {
    new car = GetPlayerVehicleID(playerid);
    SetVehicleToRespawn(car);
    SendClientMessage(playerid,COLOR_RED,"Da du gestorben bist, ist dein Job nun beendet");
    DisablePlayerCheckpoint(playerid);
    DeletePVar(playerid,"Linie");
    Linieende(playerid);
    Delete3DTextLabel(linie1text[playerid]);
    }
    if(GetPVarInt(playerid,"Leerfahrts") == 1)
    {
    new car = GetPlayerVehicleID(playerid);
    SetVehicleToRespawn(car);
    SendClientMessage(playerid,COLOR_RED,"Da du gestorben bist, ist dein Job nun beendet");
    DisablePlayerCheckpoint(playerid);
    Linieende(playerid);
    DeletePVar(playerid,"Leerfahrts");
    Delete3DTextLabel(linie1text[playerid]);
    }
    if(GetPVarInt(playerid,"MullStatus") == 1)
    {
    new car = GetPlayerVehicleID(playerid);
    SetVehicleToRespawn(car);
    SendClientMessage(playerid,COLOR_RED,"Da du ausgestiegen bist, ist dein Job nun beendet");
    DisablePlayerCheckpoint(playerid);
    DeletePVar(playerid,"MullStatus");
    }
    if(GetPVarInt(playerid,"TaxiStatus") == 1)
    {
    Linieende(playerid);
    }
    if(GetPVarInt(playerid,"FlugStatus") == 1)
    {
    new car = GetPlayerVehicleID(playerid);
    SetVehicleToRespawn(car);
    SendClientMessage(playerid,COLOR_RED,"Da du gestorben bist hast den Flug automatisch abgebrochen !");
    SetPVarInt(playerid,"FlugStatus",0);
    DisablePlayerCheckpoint(playerid);
    }
    //=======================
    //victimteam = gTeam[playerid];
    //killerteam = gTeam[killerid];
    gPlayerSpawned[playerid] = 0;
    GetPlayerName(playerid, name, sizeof(name));
    PlayerInfo[playerid][pLocal] = 255;
    if(killerid != 255)
    if(reason == 38)
    {
    new kstring[128];
    new kickname[MAX_PLAYER_NAME];
    if(IsPlayerConnected(killerid))
    {
    GetPlayerName(killerid, kickname, sizeof(kickname));
    format(string, 256, "Warnung: [%d]%s hat einen Spieler mit einer Minigun gekillt. ACHTUNG [CheatVerdacht].",killerid,kickname);
    ABroadCast(COLOR_YELLOW,string,1);
    printf("%s", kstring);
    }
    }
    if (gPlayerCheckpointStatus[playerid] > 4 && gPlayerCheckpointStatus[playerid] < 11)
    {
    DisablePlayerCheckpoint(playerid);
    gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
    }
    new caller = Mobile[playerid];
    if(caller != 255)
    {
    if(caller < 255)
    {
    SendClientMessage(caller, COLOR_GRAD2, " Die Verbindung wurde unterbrochen....");
    CellTime[caller] = 0;
    CellTime[playerid] = 0;
    Mobile[caller] = 255;
    }
    Mobile[playerid] = 255;
    CellTime[playerid] = 0;
    }
    ClearCrime(playerid);
    if(PlayerPaintballing[playerid] != 0)
    {
    PlayerPaintballKills[killerid] ++;
    if(PlayerPaintballKills[killerid] > PaintballWinnerKills)
    {
    new killer[MAX_PLAYER_NAME];
    PaintballWinner = killerid;
    PaintballWinnerKills = PlayerPaintballKills[killerid];
    GetPlayerName(killerid, killer, sizeof(killer));
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(PlayerPaintballing[i] != 0)
    {
    format(string, sizeof(string), "* %s ist mit %d Kills in Führung.",killer,PaintballWinnerKills);
    SendClientMessage(i, COLOR_WHITE, string);
    }
    }
    }
    }
    return 1;
    }
    if(PlayerPaintballing[playerid] == 0 || PlayerPaintballing[killerid] == 0)
    {
    new Float:x, Float:y, Float:z, Name[MAX_PLAYER_NAME];
    GetPlayerPos(playerid, Float:x, Float:y, Float:z);
    GetPlayerName(playerid, Name, sizeof(Name));
    format(stringz, sizeof(stringz), "†\n%s\n(%d)", Name,reason);
    Create3DTextLabel(string,0xFF1400FF, Float:x, Float:y+1, Float:z, 32.0, 0);
    PlayerInfo[playerid][pTot] = 1;
    new Float:Pos[3];
    GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
    TotenKopf[playerid] = CreatePickup(1254,1, Pos[0], Pos[1], Pos[2]);
    PlayerInfo[playerid][pTx] = Pos[0];
    PlayerInfo[playerid][pTy] = Pos[1];
    PlayerInfo[playerid][pTz] = Pos[2];
    SendFamilyMessage(4,COLOR_GREEN,"Es ist jemand gestorben! (/tote)");
    PlayerInfo[killerid][pKills] += 1;
    PlayerInfo[playerid][pDeaths] += 1;
    if(IsACop(killerid) || IsPlayerInFrac(killerid,4) || IsPlayerInFrac(killerid,9) || IsPlayerInFrac(killerid,24))
    {
    }
    else if(IsPlayerInFrac(killerid,8))
    {
    if(WantedLevel[killerid] >= 15)
    {
    WantedLevel[killerid] = 14;
    }
    else
    {
    WantedLevel[killerid] += 1;
    }
    }
    else
    {
    if(WantedLevel[killerid] >= 15)
    {
    WantedLevel[killerid] = 14;
    }
    else
    {
    WantedLevel[killerid] += 2;
    }
    }
    }
    if(GettingCK[playerid] < 999 || OnCK[playerid] < 999)
    {
    if(IsPlayerConnected(killerid))
    {
    if(GettingCK[killerid] < 999 || OnCK[playerid] < 999)
    {
    new killer[MAX_PLAYER_NAME];
    new dier[MAX_PLAYER_NAME];
    GetPlayerName(playerid, dier, sizeof(dier));
    GetPlayerName(killerid, killer, sizeof(killer));
    format(string, sizeof(string), "* %s hat deinen Charakter gesperrt, du kannst nun mit diesem Charakter nicht mehr Spielen.",killer);
    SendClientMessage(playerid, COLOR_LIGHTRED, string);
    format(string, sizeof(string), "** %s hat den Spieler %s erledigt**",killer,dier);
    CKLog(string);
    PlayerInfo[playerid][pCK] = 1;
    if(GettingCK[playerid] < 999) { GettingCK[playerid] = 999; }
    else if(OnCK[playerid] < 999) { OnCK[playerid] = 999; }
    if(GettingCK[killerid] < 999) { GettingCK[killerid] = 999; }
    else if(OnCK[killerid] < 999) { OnCK[killerid] = 999; }
    KickPlayer[playerid] = 1;
    }
    }
    }
    killerid = INVALID_PLAYER_ID;
    SetPlayerColor(playerid,COLOR_GRAD2);
    return 1;
    }



    Das habe ich mehr nicht.

    [14:43:08] [debug] Run time error 4: "Array index out of bounds"
    [14:43:08] [debug] Accessing element at index 65535 past array upper bound 999
    [14:43:08] [debug] AMX backtrace:
    [14:43:08] [debug] #0 000253b4 in public OnPlayerDeath (0, 65535, 255) from German.amx
    [14:43:14] DEBUG1
    [14:43:14] DEBUG1
    [14:43:14] DEBUG1
    [14:43:14] DEBUG1
    [14:43:14] DEBUG1
    [14:43:14] DEBUG1
    [14:43:14] DEBUG1
    [14:43:14] DEBUG1


    Ist jetzt nur wen ich sterbe.

    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);
    }
    GameTextForPlayer(playerid,"~g~Krankenhaus~n~~w~175 Sekunden",5000,1);
    TogglePlayerControllable(playerid, 0);
    ResetPlayerWeapons(playerid);
    FreezePlayer(playerid);
    SetPlayerPos(playerid,1162.871704, -1339.109619, 14.297291);
    SetPlayerCameraPos(playerid, 1223.379028, -1333.354126, 33.809105);
    SetPlayerCameraLookAt(playerid, 1178.824829, -1325.804077, 13.284119);

    SetPlayerInterior(playerid, 0);
    return 1;
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "NeuerBot", true))
    {
    PlayerInfo[playerid][pCarLic] = 1;
    PlayerInfo[playerid][pChar] = 255;
    PlayerInfo[playerid][pJob] = 14;
    SetPlayerSkin(playerid, 255);
    PutPlayerInVehicle(playerid, car_BulletLS, 0);
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "Busbot1", true))
    {
    PlayerInfo[playerid][pCarLic] = 1;
    PlayerInfo[playerid][pChar] = 255;
    PlayerInfo[playerid][pJob] = 14;
    SetPlayerSkin(playerid, 255);
    PutPlayerInVehicle(playerid, car_Busbot1, 0);
    }
    }
    if(PlayerInfo[playerid][pTut] == 0 && !IsPlayerNPC(playerid))
    {
    gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
    AtRegestration[playerid] = 1;
    RegistrationStep[playerid] = 1;
    //SendClientMessage(playerid, COLOR_YELLOW, " ");
    //SendClientMessage(playerid, COLOR_LIGHTRED, " Bist du Männlich oder Weiblich?");
    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");
    //ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Login to your account",s,"Login","Cancel");
    // ShowMenuForPlayer(Geschlecht,playerid);
    }
    if(PlayerInfo[playerid][pTut] == 0 && !IsPlayerNPC(playerid))
    {
    gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
    FreezePlayer(playerid);
    AtRegestration[playerid] = 1;
    RegistrationStep[playerid] = 1;
    //SendClientMessage(playerid, COLOR_YELLOW, " ");
    //SendClientMessage(playerid, COLOR_LIGHTRED, " Bist du Männlich oder Weiblich?");
    //ShowPlayerDialog(playerid,DIALOG_REGSTEP_1,DIALOG_STYLE_INPUT,"Geworben","Von wem wordest du geworben ?","Weiter","abbrechen");
    //----------------
    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","Bist du Männlich oder Weiblich?","Erstellen","Abbrechen");
    //ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Login to your account",s,"Login","Cancel");
    // ShowMenuForPlayer(Geschlecht,playerid);
    }
    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]) //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]); // Warp the player
    PlayerInfo[playerid][pLocal] = house;
    PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
    SetPlayerVirtualWorld(playerid,house);
    return 1;
    }
    }
    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 -> Nicht Fertig
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid, 227.2998,74.1214,1005.0391);
    SetPlayerFacingAngle(playerid,272.6156);
    SetPlayerInterior(playerid,6);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) //FBI
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid,10);
    SetPlayerPos(playerid,225.0488,120.8303,999.0814);
    SetPlayerFacingAngle(playerid,90.0000);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//Bundeswehr spawn -> Entfernt
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 201.9048,1869.4222,13.1406);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Los Santos Medical Spawn -> Fertig
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,1130.3013,-1332.5665,13.5832);
    SetPlayerFacingAngle(playerid,88.8873);
    PlayerInfo[playerid][pInt] = 0;
    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 -> Nicht Fertig
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,1290.6393,-791.4279,1089.9375);
    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,2807.6880,-1174.2935,1025.5703);
    SetPlayerInterior(playerid,8);
    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,2262.1492,2036.0642,10.8203);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if(IsAnInstructor(playerid)) //Fahrschule Spawn -> Entfernt
    {
    if(SchoolSpawn[playerid] == 0)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,-2022.2632,-116.6569,1035.1719);
    SetPlayerFacingAngle(playerid,4.7173);
    SetPlayerInterior(playerid,3);
    PlayerInfo[playerid][pInt] = 0;
    }
    else if(SchoolSpawn[playerid] == 1)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2145.5706,-1803.3696,16.1406);
    SetPlayerFacingAngle(playerid,4.7173);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    }
    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
    {
    SetPlayerToTeamColor(playerid);
    if(PlayerInfo[playerid][pOrigin] == 1 || PlayerInfo[playerid][pOrigin] == 2 || PlayerInfo[playerid][pOrigin] == 3)
    {
    SetPlayerPos(playerid,1757.8586,-1895.5825,13.5561);
    SetPlayerFacingAngle(playerid,267.9927);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    PlayerInfo[playerid][pPhoneBook] = 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;
    }


    Hay, ich habe ein Problem wen ich meine "Freundin" töte ingame zum test spawnt die Irgendwo und nicht im Krankenhaus warum?

    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);
    }
    GameTextForPlayer(playerid,"~g~Krankenhaus~n~~w~175 Sekunden",5000,1);
    TogglePlayerControllable(playerid, 0);
    ResetPlayerWeapons(playerid);
    FreezePlayer(playerid);
    SetPlayerPos(playerid,1162.871704, -1339.109619, 14.297291);
    SetPlayerCameraPos(playerid, 1223.379028, -1333.354126, 33.809105);
    SetPlayerCameraLookAt(playerid, 1178.824829, -1325.804077, 13.284119);

    SetPlayerInterior(playerid, 0);
    return 1;
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "NeuerBot", true))
    {
    PlayerInfo[playerid][pCarLic] = 1;
    PlayerInfo[playerid][pChar] = 255;
    PlayerInfo[playerid][pJob] = 14;
    SetPlayerSkin(playerid, 255);
    PutPlayerInVehicle(playerid, car_BulletLS, 0);
    }
    }
    if(IsPlayerNPC(playerid))
    {
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    if(!strcmp(botname, "Busbot1", true))
    {
    PlayerInfo[playerid][pCarLic] = 1;
    PlayerInfo[playerid][pChar] = 255;
    PlayerInfo[playerid][pJob] = 14;
    SetPlayerSkin(playerid, 255);
    PutPlayerInVehicle(playerid, car_Busbot1, 0);
    }
    }
    if(PlayerInfo[playerid][pTut] == 0 && !IsPlayerNPC(playerid))
    {
    gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
    AtRegestration[playerid] = 1;
    RegistrationStep[playerid] = 1;
    //SendClientMessage(playerid, COLOR_YELLOW, " ");
    //SendClientMessage(playerid, COLOR_LIGHTRED, " Bist du Männlich oder Weiblich?");
    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");
    //ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Login to your account",s,"Login","Cancel");
    // ShowMenuForPlayer(Geschlecht,playerid);
    }
    if(PlayerInfo[playerid][pTut] == 0 && !IsPlayerNPC(playerid))
    {
    gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
    FreezePlayer(playerid);
    AtRegestration[playerid] = 1;
    RegistrationStep[playerid] = 1;
    //SendClientMessage(playerid, COLOR_YELLOW, " ");
    //SendClientMessage(playerid, COLOR_LIGHTRED, " Bist du Männlich oder Weiblich?");
    //ShowPlayerDialog(playerid,DIALOG_REGSTEP_1,DIALOG_STYLE_INPUT,"Geworben","Von wem wordest du geworben ?","Weiter","abbrechen");
    //----------------
    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","Bist du Männlich oder Weiblich?","Erstellen","Abbrechen");
    //ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"Login to your account",s,"Login","Cancel");
    // ShowMenuForPlayer(Geschlecht,playerid);
    }
    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]) //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]); // Warp the player
    PlayerInfo[playerid][pLocal] = house;
    PlayerInfo[playerid][pInt] = HouseInfo[house][hInt];
    SetPlayerVirtualWorld(playerid,house);
    return 1;
    }
    }
    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 -> Nicht Fertig
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerPos(playerid, 227.2998,74.1214,1005.0391);
    SetPlayerFacingAngle(playerid,272.6156);
    SetPlayerInterior(playerid,6);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) //FBI
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid,10);
    SetPlayerPos(playerid,225.0488,120.8303,999.0814);
    SetPlayerFacingAngle(playerid,90.0000);
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//Bundeswehr spawn -> Entfernt
    {
    SetPlayerToTeamColor(playerid);
    GivePlayerWeapons(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, 201.9048,1869.4222,13.1406);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//Los Santos Medical Spawn -> Fertig
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,1130.3013,-1332.5665,13.5832);
    SetPlayerFacingAngle(playerid,88.8873);
    PlayerInfo[playerid][pInt] = 0;
    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 -> Nicht Fertig
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,1290.6393,-791.4279,1089.9375);
    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,2807.6880,-1174.2935,1025.5703);
    SetPlayerInterior(playerid,8);
    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,2262.1492,2036.0642,10.8203);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    return 1;
    }
    if(IsAnInstructor(playerid)) //Fahrschule Spawn -> Entfernt
    {
    if(SchoolSpawn[playerid] == 0)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,-2022.2632,-116.6569,1035.1719);
    SetPlayerFacingAngle(playerid,4.7173);
    SetPlayerInterior(playerid,3);
    PlayerInfo[playerid][pInt] = 0;
    }
    else if(SchoolSpawn[playerid] == 1)
    {
    SetPlayerToTeamColor(playerid);
    SetPlayerPos(playerid,2145.5706,-1803.3696,16.1406);
    SetPlayerFacingAngle(playerid,4.7173);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    }
    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
    {
    SetPlayerToTeamColor(playerid);
    if(PlayerInfo[playerid][pOrigin] == 1 || PlayerInfo[playerid][pOrigin] == 2 || PlayerInfo[playerid][pOrigin] == 3)
    {
    SetPlayerPos(playerid,1757.8586,-1895.5825,13.5561);
    SetPlayerFacingAngle(playerid,267.9927);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    PlayerInfo[playerid][pPhoneBook] = 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;
    }



    Ich habe ein Problem wen ich meine "Freundin" widerbelebe oder sonst irgendwas spawnt die irgendwo warum das den normal sollte sie Ganz normal im Krankenhaus liegen sorry aber ist echt wichtig..

    [00:11:00] Step: 0 (Start)
    [00:11:00] Step: 1
    [00:11:00] Step: 2
    [00:11:00] Step: 3
    [00:11:04] Step: 0 (Start)
    [00:11:04] Step: 1
    [00:11:04] Step: 2
    [00:11:04] Step: 3
    [00:11:04] Step: 4 / pID = 0 / preisX = 500
    [00:11:04] Step: 5
    [00:11:04] Step: 6
    [00:11:04] Step: 7
    [00:11:04] Step: 8
    [00:11:04] Step: 28 (ENDE)

    ocmd:free(playerid,params[])
    {
    if(!IsPlayerConnected(playerid))return 1;
    if(PlayerInfo[playerid][pJob] != 2)return SendClientMessage(playerid, COLOR_GREY, "Du bist kein Anwalt!");
    new nameX[2][MAX_PLAYER_NAME+5],stringX[128],pID,preisX;
    if(sscanf(params,"ud",pID,preisX))return SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /free [SpielerID/SpielerName][Kaution]");
    if(pID == playerid) return true;
    if(!IsPlayerConnected(pID))return SendClientMessage(playerid, COLOR_GREY, "Der angegebene Spieler ist nicht online!");
    if(pID != INVALID_PLAYER_ID || PlayerInfo[pID][pJailed] != 2)
    {
    if(pID == playerid)return SendClientMessage(playerid, COLOR_GREY, "Du kannst dich nicht selber befreien!");
    if(PlayerInfo[pID][pJailed] ==1 && ApprovedLawyer[playerid] == 1)
    {
    GetPlayerName(pID, nameX[0], 128);
    GetPlayerName(playerid, nameX[1], 128);
    format(stringX, sizeof(stringX), "* Du hast %s aus dem Knast geholt.", nameX[0]);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, stringX);
    format(stringX, sizeof(stringX), "* Du wurdest von Anwalt %s aus dem Knast geholt.", nameX[1]);
    format(stringX, sizeof(stringX), "* Die Befreiung kostete %d$.", preisX);
    SendClientMessage(pID, COLOR_LIGHTBLUE, stringX);
    GivePlayerMoney(pID,-preisX);
    SendClientMessage(pID, COLOR_LIGHTBLUE, stringX);
    ApprovedLawyer[playerid] = 0;
    WantLawyer[pID] = 0;
    CallLawyer[pID] = 0;
    JailPrice[pID] = 0;
    PlayerInfo[pID][pJailTime] = 1;
    PlayerInfo[playerid][pLawSkill] ++;
    if(PlayerInfo[playerid][pLawSkill] == 50)
    { SendClientMessage(playerid, COLOR_YELLOW, "* Dein anwalt Skill ist nun auf 2.Du kannst jetzt schneller und mehr Geld verdienen."); }
    else if(PlayerInfo[playerid][pLawSkill] == 100)
    { SendClientMessage(playerid, COLOR_YELLOW, "* Dein anwalt Skill ist nun auf 3.Du kannst jetzt schneller und mehr Geld verdienen."); }
    else if(PlayerInfo[playerid][pLawSkill] == 200)
    { SendClientMessage(playerid, COLOR_YELLOW, "* Dein anwalt Skill ist nun auf 4.Du kannst jetzt schneller und mehr Geld verdienen."); }
    else if(PlayerInfo[playerid][pLawSkill] == 400)
    { SendClientMessage(playerid, COLOR_YELLOW, "* Dein anwalt Skill ist nun auf 5.Du kannst jetzt schneller und mehr Geld verdienen."); }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Spieler ist nicht im Jail oder braucht keinen Anwalt!");
    }
    return 1;
    }



    Habe es mal getestet es Passiert nichts?

    ocmd:free(playerid,params[])
    {
    if(!IsPlayerConnected(playerid))return 1;
    if(PlayerInfo[playerid][pJob] != 2)return SendClientMessage(playerid, COLOR_GREY, "Du bist kein Anwalt!");
    new nameX[2][MAX_PLAYER_NAME+5],stringX[128],pID;
    if(sscanf(params,"u",pID))return SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /free [SpielerID/SpielerName]");
    if(pID == playerid) return true;
    if(!IsPlayerConnected(pID))return SendClientMessage(playerid, COLOR_GREY, "Der angegebene Spieler ist nicht online!");
    if(pID != INVALID_PLAYER_ID || PlayerInfo[pID][pJailed] != 2)
    {
    if(pID == playerid)return SendClientMessage(playerid, COLOR_GREY, "Du kannst dich nicht selber befreien!");
    if(PlayerInfo[pID][pJailed] ==1 && ApprovedLawyer[playerid] == 1)
    {
    GetPlayerName(pID, nameX[0], 128);
    GetPlayerName(playerid, nameX[1], 128);
    format(stringX, sizeof(stringX), "* Du hast %s aus dem Knast geholt.", nameX[0]);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, stringX);
    format(stringX, sizeof(stringX), "* Du wurdest von Anwalt %s aus dem Knast geholt.", nameX[1]);
    SendClientMessage(pID, COLOR_LIGHTBLUE, stringX);
    ApprovedLawyer[playerid] = 0;
    WantLawyer[pID] = 0;
    CallLawyer[pID] = 0;
    JailPrice[pID] = 0;
    PlayerInfo[pID][pJailTime] = 1;
    PlayerInfo[playerid][pLawSkill] ++;
    if(PlayerInfo[playerid][pLawSkill] == 50)
    { SendClientMessage(playerid, COLOR_YELLOW, "* Dein anwalt Skill ist nun auf 2.Du kannst jetzt schneller und mehr Geld verdienen."); }
    else if(PlayerInfo[playerid][pLawSkill] == 100)
    { SendClientMessage(playerid, COLOR_YELLOW, "* Dein anwalt Skill ist nun auf 3.Du kannst jetzt schneller und mehr Geld verdienen."); }
    else if(PlayerInfo[playerid][pLawSkill] == 200)
    { SendClientMessage(playerid, COLOR_YELLOW, "* Dein anwalt Skill ist nun auf 4.Du kannst jetzt schneller und mehr Geld verdienen."); }
    else if(PlayerInfo[playerid][pLawSkill] == 400)
    { SendClientMessage(playerid, COLOR_YELLOW, "* Dein anwalt Skill ist nun auf 5.Du kannst jetzt schneller und mehr Geld verdienen."); }
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Spieler ist nicht im Jail oder braucht keinen Anwalt!");
    }
    return 1;
    }


    Wie kann ich Kaution hinzufügen also wieviel der Spieler Zahlen muss das er raus kann aus dem Knast?

    [17:32:07] Step: 0 (Start)
    [17:32:07] Step: 1
    [17:32:42] Step: 0 (Start)
    [17:32:42] Step: 1
    [17:32:42] Step: 2
    [17:32:42] Step: 3
    [17:32:42] Step: 4
    [17:32:42] Step: 5
    [17:32:42] Step: 6
    [17:32:42] Step: 6 - 1 / giveplayeridX = 65535 /playerid = 0
    [17:32:42] Step: 7
    [17:32:42] Step: 7 - 1 / giveplayeridX = 65535 /playerid = 0


    Ist ja nichts gegen dich aber danke für deine Hilfe ist nicht böse gemeint