Spieler stirbt nach Spawn seitdem auf 0.3z

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
  • Hier der Code benutze ein GF Edit.
    public OnPlayerSpawn(playerid)
    {
    if(IsPlayerNPC(playerid)){
    PlayerInfo[playerid][pCarLic] = 1;
    new botname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, botname, sizeof(botname));
    SetPlayerToTeamColor(playerid);
    if(strcmp(botname, "Dirk", true) == 0){
    SetPlayerSkin(playerid,6);
    SetPlayerVirtualWorld(playerid,0);
    PutPlayerInVehicle(playerid, BotCarDirk, 0);
    Attach3DTextLabelToVehicle(BusbotLS, BotCarDirk, 0.0, 0.0, 0.0);
    }
    }
    Tot[playerid] = 0;
    PlayerInfo[playerid][pLocal] = -1;
    SetPlayerPos(playerid,1110.1477,-1796.8231,16.5938);
    SetPlayerHealth(playerid, 100);
    TextDrawHideForPlayer(playerid,Tacho[playerid]);
    TextDrawHideForPlayer(playerid,Tacho1[playerid]);
    TextDrawHideForPlayer(playerid,Tacho2[playerid]);
    TextDrawHideForPlayer(playerid,Tacho3[playerid]);
    TextDrawHideForPlayer(playerid,Tacho4[playerid]);
    TextDrawHideForPlayer(playerid,Tacho5[playerid]);
    TextDrawHideForPlayer(playerid,Tacho6[playerid]);
    TextDrawHideForPlayer(playerid,Tacho7[playerid]);
    TextDrawHideForPlayer(playerid,AntiAFK[playerid]);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerToTeamColor(playerid);
    SetCameraBehindPlayer(playerid);
    SetPlayerSpawn(playerid);
    SetPlayerWeapons(playerid);
    if(!gPlayerAnimLibsPreloaded[playerid]){
    PreloadAnimLib(playerid,"BOMBER");
    PreloadAnimLib(playerid,"RAPPING");
    PreloadAnimLib(playerid,"SHOP");
    PreloadAnimLib(playerid,"BEACH");
    PreloadAnimLib(playerid,"SMOKING");
    PreloadAnimLib(playerid,"FOOD");
    PreloadAnimLib(playerid,"ON_LOOKERS");
    PreloadAnimLib(playerid,"DEALER");
    PreloadAnimLib(playerid,"CRACK");
    PreloadAnimLib(playerid,"CARRY");
    PreloadAnimLib(playerid,"COP_AMBIENT");
    PreloadAnimLib(playerid,"PARK");
    PreloadAnimLib(playerid,"INT_HOUSE");
    PreloadAnimLib(playerid,"FOOD");
    gPlayerAnimLibsPreloaded[playerid] = 1;
    }
    for(new i = 0; i < sizeof(GangfightSystemInfo); i++){
    new GANGZONE_COLOR;
    if(GangfightSystemInfo[i][GFOwnerID] == 5) { GANGZONE_COLOR = GANGCOLOR_LCN; }
    if(GangfightSystemInfo[i][GFOwnerID] == 6) { GANGZONE_COLOR = GANGCOLOR_YAKUZA; }
    if(GangfightSystemInfo[i][GFOwnerID] == 17) { GANGZONE_COLOR = GANGCOLOR_CAMORA; }
    if(GangfightSystemInfo[i][GFOwnerID] == 18) { GANGZONE_COLOR = GANGCOLOR_ATZTECAS; }
    if(GangfightSystemInfo[i][GFOwnerID] == 19) { GANGZONE_COLOR = GANGCOLOR_GROVESTREET; }
    if(GangfightSystemInfo[i][GFOwnerID] == 20) { GANGZONE_COLOR = GANGCOLOR_BALLAS; }
    if(GangfightSystemInfo[i][GFOwnerID] == 22) { GANGZONE_COLOR = GANGCOLOR_RIFA; }
    if(GangfightSystemInfo[i][GFOwnerID] == 23) { GANGZONE_COLOR = GANGCOLOR_REDSOLDIER; }
    if(GangfightSystemInfo[i][GFOwnerID] == 24) { GANGZONE_COLOR = GANGCOLOR_VAGOS; }
    if(GangfightSystemInfo[i][GFOwnerID] == 25) { GANGZONE_COLOR = GANGCOLOR_GUERILLA; }
    if(GangfightSystemInfo[i][GFOwnerID] == 26) { GANGZONE_COLOR = GANGCOLOR_KARTEL; }
    GangZoneShowForPlayer(playerid, GangfightSystemInfo[i][GFGangZoneID], GANGZONE_COLOR);
    if(GangfightSystemInfo[i][GFGegnerID] != -1){
    if(GangfightSystemInfo[i][GFGegnerID] == 5) { GANGZONE_COLOR = GANGCOLOR_LCN; }
    if(GangfightSystemInfo[i][GFGegnerID] == 6) { GANGZONE_COLOR = GANGCOLOR_YAKUZA; }
    if(GangfightSystemInfo[i][GFGegnerID] == 17) { GANGZONE_COLOR = GANGCOLOR_CAMORA; }
    if(GangfightSystemInfo[i][GFGegnerID] == 18) { GANGZONE_COLOR = GANGCOLOR_ATZTECAS; }
    if(GangfightSystemInfo[i][GFGegnerID] == 19) { GANGZONE_COLOR = GANGCOLOR_GROVESTREET; }
    if(GangfightSystemInfo[i][GFGegnerID] == 20) { GANGZONE_COLOR = GANGCOLOR_BALLAS; }
    if(GangfightSystemInfo[i][GFGegnerID] == 22) { GANGZONE_COLOR = GANGCOLOR_RIFA; }
    if(GangfightSystemInfo[i][GFGegnerID] == 23) { GANGZONE_COLOR = GANGCOLOR_REDSOLDIER; }
    if(GangfightSystemInfo[i][GFGegnerID] == 24) { GANGZONE_COLOR = GANGCOLOR_VAGOS; }
    if(GangfightSystemInfo[i][GFGegnerID] == 25) { GANGZONE_COLOR = GANGCOLOR_GUERILLA; }
    if(GangfightSystemInfo[i][GFGegnerID] == 26) { GANGZONE_COLOR = GANGCOLOR_KARTEL; }
    GangZoneFlashForPlayer(playerid, GangfightSystemInfo[i][GFGangZoneID], GANGZONE_COLOR);
    }}
    //Gangzonen Ende
    if(FirstSpawnAfterLogin[playerid] == 1){
    if(PlayerInfo[playerid][pWantedLevel] > 0){
    new string[128];
    new playername[MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername, sizeof(playername));
    for(new i = 0; i < MAX_PLAYERS; i++){
    if(IsPlayerConnected(i) && IsACop(i) && OnDuty[i] == 1){
    format(string, sizeof(string), "%s( %d )\nWanted Level: %d\nGrund: %s\nDM-Rate: %0.2f", playername,playerid, PlayerInfo[playerid][pWantedLevel], PlayerCrime[playerid][pAccusedof],Float:PlayerInfo[playerid][psKills]/Float:PlayerInfo[playerid][pConnectTime]);
    WantedLabel[playerid][i] = CreatePlayer3DTextLabel(i, string, COLOR_KNALLROT, 0.0, 0.0, 1.0, 50.0, playerid, INVALID_VEHICLE_ID,1);
    }}}}
    FirstSpawnAfterLogin[playerid] = 0;
    return 1;
    }

  • Tot[playerid] = 0


    Hier:
    FirstSpawnAfterLogin[playerid] = 0;
    SetPlayerWorldBounds(playerid, 20000.0000,-20000.0000,20000.0000,-20000.0000);
    CellTime[playerid] = 0; Mobile[playerid] = -1; RingTone[playerid] = 0; Uberweisungsid[playerid] = -1; Tot[playerid] = 0; SelectChar[playerid] = 0; HidePM[playerid] = 0; PhoneOnline[playerid] = 0;
    SelectCharID[playerid] = 0; SelectCharPlace[playerid] = 0; ChosenSkin[playerid] = 0; GettingJob[playerid] = 0; AllowTune[playerid] = -1;
    RobTimer[playerid] = -1; AntiRobTimer[playerid] = 0; TeamRadar[playerid] = 0; MullManOwned[playerid] = -1;
    CallLawyer[playerid] = 0; WantLawyer[playerid] = 0; NoDmTimer[playerid] = 0; NoDmWarnungen[playerid] = 0; UsedFind[playerid] = 0;
    CP[playerid] = 0; MoneyMessage[playerid] = 0; Condom[playerid] = 0; HitSound[playerid] = 1;
    STDPlayer[playerid] = 0; SexOffer[playerid] = 999; SexPrice[playerid] = 0; SexOn[playerid] = -1; SexTime[playerid] = -1; RepairOffer[playerid] = -1; RepairPrice[playerid] = 0;
    VertragOffer[playerid] = -1; Supportercar[playerid] = -1; TalkingLive[playerid] = 255; LiveOffer[playerid] = 999; HealProds[playerid] = 0;
    LessonOffer[playerid] = -1; LessonPrice[playerid] = 0; TakingLesson[playerid] = 0; RefillOffer[playerid] = -1; RefillPrice[playerid] = 0; MapIconsShown[playerid] = 0;
    HotdogOffer[playerid] = -1; HotdogPrice[playerid] = 0; HealPrice[playerid] = -1; PlayerHeal[playerid] = -1; HealOffer[playerid] = -1;
    UnDrugs[playerid] = 0; PlayerCuffed[playerid] = 0; PlayerCuffedTime[playerid] = 0; PlayerTied[playerid] = 0;
    RegistrationStep[playerid] = 0; ConnectedToPC[playerid] = 0; JailPrice[playerid] = 0; MedicBill[playerid] = -1; MedicBillTimer[playerid] = -1;
    GoChase[playerid] = -1; ContractTaked[playerid] = 0; Maske[playerid] = 0; OrderReady[playerid] = 0; PlacedNews[playerid] = 0; OnDuty[playerid] = 0; TestFishes[playerid] = 0; EventEingeladen[playerid] = 0; TransportDuty[playerid] = 0;
    BusCallTime[playerid] = 0; TaxiCallTime[playerid] = 0; MedicAccepted[playerid] = -1; MechanicCallTime[playerid] = 0; FindTimePoints[playerid] = 0; FindTime[playerid] = 0; JobDuty[playerid] = 0; Mobile[playerid] = -1; Music[playerid] = 0;
    Spectate[playerid] = -1; PlayerDrunkTime[playerid] = 0; WheelmanAccepted[playerid] = -1; HaveDonuts[playerid] = 0; EatDonutAktive[playerid] = 0;
    gLastCar[playerid] = 0; WantedLoseAllow[playerid] = 0; SpawnKillAktiv[playerid] = 0; gOoc[playerid] = 0; gNews[playerid] = 0; BigEar[playerid] = 0; gDice[playerid] = 0; gFam[playerid] = 0; TogAdminChat[playerid] = 0; TogLoginLogout[playerid] = 1;
    gPlayerLogTries[playerid] = 0; gPlayerAccount[playerid] = 0; PlayerKarting[playerid] = 0; PlayerInKart[playerid] = 0; PlayerTazeTime[playerid] = 0; PlayerStoned[playerid] = 0; PlayerStonedTime[playerid] = 0;
    TicketOffer[playerid] = 999; TicketMoney[playerid] = 0; CodesHolding[playerid] = 0; TazerCan[playerid] = 0;
    MatsHolding[playerid] = 0; gPlayerMission[playerid] = 0; TaxiAccepted[playerid] = 999; BusAccepted[playerid] = 999; PlayerInfo[playerid][pCash] = 0; Blitzed[playerid] = 0;
    TransportValue[playerid] = 0; TransportMoney[playerid] = 0; TransportTime[playerid] = 0; TransportCost[playerid] = 0; TransportDriver[playerid] = 999;
    PlayerPaintballing[playerid] = 0; PlayerTeamPaintballing[playerid] = 0; PlayerPaintballKills[playerid] = 0; Fishes[playerid][pLastFish] = 0; Fishes[playerid][pFishID] = 0;
    FallAngenommen[playerid] = -1; FallAngenommenTimer[playerid] = 0; FallAngenommenAnwalt[playerid] = -1;
    ProposeOffer[playerid] = 999; MarryWitness[playerid] = 999; MarryWitnessOffer[playerid] = 999; MarriageCeremoney[playerid] = 0; ProposedTo[playerid] = 999; GotProposedBy[playerid] = 999; DivorceOffer[playerid] = 999; InviteOffer[playerid] = -1; InviteTeam[playerid] = -1;
    AntiAFKCode[playerid] = 0; AntiAFKTime[playerid] = 0; AntiAFKTimer[playerid] = 0; AFKChecker[playerid] = -1;
    Kleidungsshop[playerid] = -1; AFKKick[playerid] = 0;
    AFKModus[playerid] = 0;
    JobFreeze[playerid] = 300; HotdogTime[playerid] = 0; //HotdogLager[playerid] = 0;
    TicketSys[playerid][TSAdminID] = -1;
    TicketSys[playerid][TSUserID] = -1;
    strmid(TicketSys[playerid][TSText], "------", 0, strlen("------"), 255);
    AntiSpamWarns[playerid] = 0; AntiSpamTime[playerid] = 0;
    WantedHackZeit[playerid] = -1; HackArt[playerid] = 0; WantedHackKunde[playerid] = -1;
    HackAnzahl[playerid] = 0;
    DIeses Problem kam erst mit 0.3z