OnPlayerSpawn not getting called.
#2

pawn Код:
if (PlayerJustDied[playerid] == 1)
        {
            SetPlayerPos(playerid, DeathStuff[playerid][DeathX], DeathStuff[playerid][DeathY], DeathStuff[playerid][DeathZ]);
            SetPlayerInterior(playerid, DeathStuff[playerid][DeathInt]);
            SetPlayerFacingAngle(playerid, DeathStuff[playerid][DeathA]);
            SetPlayerSkin(playerid, AccountData[playerid][pSkin]);
            DeathStuff[playerid][DeathHP] = 100;
            displayCenterHUDInfo(playerid, "~r~Injured~n~~w~/accept death or /service ems", 8);
            SetPlayerArmour(playerid, 0.0);
            SetPlayerHealth(playerid, 100.0);
            ClearAnimations(playerid);
            PlayerJustDied[playerid] = 0;
            ApplyAnimation(playerid, "KNIFE", "KILL_Knife_Ped_Die",4.0,0,1,1,1,0,1);
            for(new i = 0;i<13;i++)
               {
                  GivePlayerValidWeapon(playerid, DeathWeapons[playerid][i][0], DeathWeapons[playerid][i][1]);
               }
            SetTimerEx("DeathTimer", 1000, false, "i", playerid);
            return 1;
        }
Try that, Let me know what happens, or furthermore video it!
Reply


Messages In This Thread
OnPlayerSpawn not getting called. - by jihadmeneer - 05.04.2014, 09:09
Re: OnPlayerSpawn not getting called. - by Dokins - 05.04.2014, 09:31
Re: OnPlayerSpawn not getting called. - by jihadmeneer - 05.04.2014, 09:43
Re: OnPlayerSpawn not getting called. - by Dokins - 05.04.2014, 09:59
Re: OnPlayerSpawn not getting called. - by jihadmeneer - 05.04.2014, 10:01
Re: OnPlayerSpawn not getting called. - by Dokins - 05.04.2014, 10:24
Re: OnPlayerSpawn not getting called. - by jihadmeneer - 05.04.2014, 10:25
Re: OnPlayerSpawn not getting called. - by Dokins - 05.04.2014, 10:27
Re: OnPlayerSpawn not getting called. - by jihadmeneer - 05.04.2014, 10:28
Re: OnPlayerSpawn not getting called. - by Dokins - 05.04.2014, 10:31

Forum Jump:


Users browsing this thread: 1 Guest(s)