SA-MP Forums Archive
Death problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Death problem (/showthread.php?tid=379915)



Death problem - N0FeaR - 23.09.2012

When i die i come to red county? can you see the problem?


pawn Код:
}
    if(PlayerInfo[playerid][pDead] == 1)
    {
        DOO_SetPlayerPos(playerid,PlayerInfo[playerid][pPosX],PlayerInfo[playerid][pPosY],PlayerInfo[playerid][pPosZ]);
        SetPlayerInterior(playerid,PlayerInfo[playerid][pInt]);
        SetPlayerVirtualWorld(playerid,PlayerInfo[playerid][pWorld]);
        TogglePlayerControllable(playerid,false);
        SendClientMessage(playerid,COLOR_WHITE,"INFO: Type /accept death to leave this position.");
        SetPlayerHealth(playerid,1.0);
        ApplyAnimation(playerid, "PARACHUTE", "FALL_skyDive_DIE", 4.0, 0, 1, 1, 1, -1);
        return 1;



Re: Death problem - clarencecuzz - 23.09.2012

Have you set a value for PlayerInfo[playerid][pPosX], PlayerInfo[playerid][pPosY] and PlayerInfo[playerid][pPosZ]??

If you have, show us where you set them, where you define DOO_SetPlayerPos and where you set pDead.