spawn fehler

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • ja hallo leute ich habe ein problem ich will das die leute wenn die sterben im kranken haus sind und wenn die spawn in der base spawn
    kann mir jemand helfen mfg campo


    unction RespawnAfterKrankenhaus(playerid)
    {
    SpawnPlayer(playerid);
    SetPlayerFacingAngle(playerid,113.4541);
    SetPlayerInterior(playerid,0);
    PlayerInfo[playerid][pInt] = 0;
    SetCameraBehindPlayer(playerid);
    UnFreezePlayer(playerid);
    new rand = random(3);
    if(rand == 0)
    {
    GameTextForPlayer(playerid,"~y~GEHEILT!~n~~g~Du hattest eine leichte Verletzung",5000,3);
    SetPlayerHealth(playerid,90.0);
    }
    else if(rand == 1)
    {
    GameTextForPlayer(playerid,"~y~GEHEILT!~n~~g~Du hattest eine mittlere Verletzung",5000,3);
    SetPlayerHealth(playerid,60.0);
    }
    else if(rand == 2)
    {
    GameTextForPlayer(playerid,"~y~GEHEILT!~n~~g~Du hattest eine schwere Verletzung",5000,3);
    SetPlayerHealth(playerid,20.0);
    }
    return 1;
    }

  • Function OnPlayerSpawn(playerid)
    {
    M_OnPlayerSpawn(playerid);
    TextDrawShowForPlayer(playerid,Copyright);
    TextDrawShowForPlayer(playerid,Datum);
    if(PlayerInfo[playerid][pTot] == 1 && PlayerInfo[playerid][pLevel] > 2)
    {
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_LIGHTRED, " ");
    SendClientMessage(playerid, COLOR_YELLOW, "|________ Krankenhaus Behandlung ________|");
    SendClientMessage(playerid, COLOR_LIGHTRED, "Du bist im Krankenhaus und wirst behandelt.");
    SendClientMessage(playerid, COLOR_LIGHTRED, "Die Behandlung wird maximal 1 Minuten dauern.");
    SetPlayerSpawn(playerid);
    if(IsPlayerInFrac(playerid, 1))
    {
    SetPlayerColor(playerid,NAMECOLOR_LSCOP);
    }
    else if(IsPlayerInFrac(playerid, 4))
    {
    SetPlayerColor(playerid, NAMECOLOR_MEDIC);
    }
    else
    {
    SetPlayerColor(playerid,TEAM_HIT_COLOR);
    }
    ResetPlayerWeapons(playerid);
    return 1;
    }



    unction 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,1162.871704, -1339.109619, 14.297291);
    SetPlayerCameraPos(playerid, 1223.379028, -1333.354126, 33.809105);
    SetPlayerCameraLookAt(playerid, 1178.824829, -1325.804077, 13.284119);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerInterior(playerid, 0);
    return 1;
    }


    wenn geht adde mich in skype ffstalker bitte