Respawn zeit - Spieler

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
  • Tut er doch?


    Die Kamera geht dann doch so wackelig hoch
    das sind 3 Sec ungefähr

    Die deutsche Rechtschreibung ist Freeware, sprich du darfst sie kostenlos nutzen...
    Sie ist aber nicht Open Source, somit darfst du sie nicht verändern oder in veränderter Form veröffentlichen!


  • Das wurde dann warscheinlich so im Script gemacht..


    Guck mal bei OnPlayerDeath nach


    SpawnPlayer(playerid);

    Die deutsche Rechtschreibung ist Freeware, sprich du darfst sie kostenlos nutzen...
    Sie ist aber nicht Open Source, somit darfst du sie nicht verändern oder in veränderter Form veröffentlichen!


  • public OnPlayerDeath(playerid, killerid, reason)
    {
    //if(DMS[playerid] == 1)
    ///{
    // SendDeathMessage(killerid, playerid, reason);
    // }
    if(PlayerInfo[playerid][pKopfgeld] > 0)
    {
    if(IsPlayerConnected(killerid))
    {
    if(PlayerInfo[killerid][pFaction] == 14)
    {
    new name[MAX_PLAYER_NAME];
    new string[128];
    new killer[MAX_PLAYER_NAME];
    GetPlayerName(killerid, killer, sizeof(killer));
    GivePlayerMoney(killerid, PlayerInfo[playerid][pKopfgeld]);
    format(string, sizeof(string), "Hitman %s hat den Auftrag an %s erfüllt und bekommt: $%d",killer,name,PlayerInfo[playerid][pKopfgeld]);
    SendTramMessage(COLOR_YELLOW, string);
    PlayerInfo[playerid][pKopfgeld] = 0;
    }
    }
    }


    if(WantedLevel[playerid] > 0)
    {
    if(IsPlayerConnected(killerid))
    {
    if(PlayerInfo[killerid][pFaction] == 1 || PlayerInfo[killerid][pFaction] == 2)
    {
    new string[128];
    PlayerInfo[playerid][pJailed] = 1;
    PlayerInfo[playerid][pJailTime] = PlayerInfo[playerid][pWLevel] * 150;
    new JailKosten;
    JailKosten = PlayerInfo[playerid][pWLevel] * 100;
    ResetPlayerWeapons(playerid);
    SetPlayerPos(playerid, 214.7836,108.9935,999.0156);
    SetPlayerInterior(playerid, 2);
    // SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
    PlayerInfo[playerid][pWLevel] = 0;
    format(string, sizeof(string), "Du wurdest eingesperrt! - Zeit: %d Sekunden. Preis: %d.00$", PlayerInfo[playerid][pPrisonTime], JailKosten);
    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
    WantedLevel[playerid] = 0;
    SetPlayerWantedLevel(playerid, 0);
    GivePlayerMoney(playerid, -JailKosten);
    }
    }
    }
    if(PlayerInfo[playerid][pFaction] == 255) // Zvilist
    {
    if(PlayerInfo[playerid][pJailed] == 1)
    {
    SetPlayerPos(playerid, 214.2573,108.2698,1000.7222);
    SetPlayerInterior(playerid, 2);
    return 1;
    }
    // SpawnPlayer(playerid);
    SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
    SetPlayerPos(playerid, -1968.5244,112.7431,27.6875);
    SetPlayerHealth(playerid, 100);
    return 1;
    }
    if(PlayerInfo[playerid][pFaction] == 1)// SFPD
    {
    if(PlayerInfo[playerid][pJailed] == 1) // SFPD
    {
    SetPlayerPos(playerid, 214.2573,108.2698,1000.7222);
    SetPlayerInterior(playerid, 2);
    return 1;
    }
    // SpawnPlayer(playerid);
    SetPlayerPos(playerid, 228.2174,80.9218,1005.0391);
    SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
    SetPlayerHealth(playerid, 100);
    SetPlayerInterior(playerid, 0);
    return 1;
    }
    if(PlayerInfo[playerid][pFaction] == 2) // FBI
    {
    if(PlayerInfo[playerid][pJailed] == 1)
    {
    SetPlayerPos(playerid, 214.2573,108.2698,1000.7222);
    SetPlayerInterior(playerid, 2);
    return 1;
    }
    // SpawnPlayer(playerid);
    SetPlayerPos(playerid, 228.2174,80.9218,1005.0391);
    SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
    SetPlayerHealth(playerid, 100);
    SetPlayerInterior(playerid, 0);
    return 1;
    }
    if(PlayerInfo[playerid][pFaction] == 3) // Bürgermeister
    {
    if(PlayerInfo[playerid][pJailed] == 1)
    {
    SetPlayerPos(playerid, 214.2573,108.2698,1000.7222);
    SetPlayerInterior(playerid, 2);
    return 1;
    }
    // SpawnPlayer(playerid);
    SetPlayerPos(playerid, 1728.1504,-1670.5771,27.1953);
    SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
    SetPlayerHealth(playerid, 100);
    SetPlayerInterior(playerid, 0);
    return 1;
    }
    if(PlayerInfo[playerid][pFaction] == 4) // Medics
    {
    if(PlayerInfo[playerid][pJailed] == 1)
    {
    SetPlayerPos(playerid, 214.2573,108.2698,1000.7222);
    SetPlayerInterior(playerid, 2);
    return 1;
    }
    // SpawnPlayer(playerid);
    SetPlayerPos(playerid, 299.7195,191.1002,1007.1794);
    SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
    SetPlayerHealth(playerid, 100);
    SetPlayerInterior(playerid, 0);
    return 1;
    }
    if(PlayerInfo[playerid][pFaction] == 5) // Miliz
    {
    if(PlayerInfo[playerid][pJailed] == 1)
    {
    SetPlayerPos(playerid, 214.2573,108.2698,1000.7222);
    SetPlayerInterior(playerid, 2);
    return 1;
    }
    // SpawnPlayer(playerid);
    SetPlayerPos(playerid, -1684.9231,1323.2990,7.1875);
    SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
    SetPlayerHealth(playerid, 100);
    SetPlayerInterior(playerid, 0);
    return 1;
    }
    if(PlayerInfo[playerid][pFaction] == 6) // News Reporter
    {
    if(PlayerInfo[playerid][pJailed] == 1)
    {
    SetPlayerPos(playerid, 214.2573,108.2698,1000.7222);
    SetPlayerInterior(playerid, 2);
    return 1;
    }
    // SpawnPlayer(playerid);
    SetPlayerPos(playerid, -2055.4890,456.0122,35.1719);
    SetPlayerHealth(playerid, 100);
    SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
    SetPlayerInterior(playerid, 0);
    return 1;
    }
    if(PlayerInfo[playerid][pFaction] == 7) // Hells Angels
    {
    if(PlayerInfo[playerid][pJailed] == 1)
    {
    SetPlayerPos(playerid, -1862.0996,-145.2117,11.8984);
    SetPlayerInterior(playerid, 2);
    return 1;
    }
    // SpawnPlayer(playerid);
    SetPlayerPos(playerid,-1811.8207,-135.6321,6.1383);
    SetPlayerHealth(playerid, 100);
    SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
    return 1;
    }
    if(PlayerInfo[playerid][pFaction] == 8) // SF Rifa
    {
    if(PlayerInfo[playerid][pJailed] == 1)
    {
    SetPlayerPos(playerid, -1862.0996,-145.2117,11.8984);
    SetPlayerInterior(playerid, 2);
    return 1;
    }
    // SpawnPlayer(playerid);
    SetPlayerPos(playerid, -2176.8247,642.5318,49.4375);
    SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
    SetPlayerHealth(playerid, 100);
    return 1;
    }
    if(PlayerInfo[playerid][pFaction] == 9) // Triaden
    {
    if(PlayerInfo[playerid][pJailed] == 1)
    {
    SetPlayerPos(playerid, -1862.0996,-145.2117,11.8984);
    SetPlayerInterior(playerid, 2);
    return 1;
    }
    // SpawnPlayer(playerid);
    SetPlayerPos(playerid, -2642.5901,857.0774,64.0078);
    SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
    SetPlayerHealth(playerid, 100);
    return 1;
    }
    if(PlayerInfo[playerid][pFaction] == 10) // Da Nang Boys
    {
    if(PlayerInfo[playerid][pJailed] == 1)
    {
    SetPlayerPos(playerid, 214.2573,108.2698,1000.7222);
    SetPlayerInterior(playerid, 2);
    return 1;
    }
    // SpawnPlayer(playerid);
    SetPlayerPos(playerid, -2458.0776,-136.7091,25.9899);
    SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
    SetPlayerHealth(playerid, 100);
    return 1;
    }
    if(PlayerInfo[playerid][pJailed] == 1)
    {
    SetPlayerPos(playerid, 214.2573,108.2698,1000.7222);
    SetPlayerInterior(playerid, 2);
    return 1;
    }

    // GetPlayerPos(playerid, deadx[playerid], deady[playerid], deadz[playerid]);
    // JustDied[playerid] = 1;
    // DeadInt[playerid] = GetPlayerInterior(playerid);
    // DeadWorld[playerid] = GetPlayerVirtualWorld(playerid);
    return 1;
    }


    Bitte ;D