SA-MP Forums Archive
Bug - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Bug (/showthread.php?tid=270282)



Bug - GeonMake - 19.07.2011

Well, can you guys tell me when the player remains with 0hp, I get a block (It's like freezed) but I can still move the camera, after I get unfreezed, it kills me.


Re: Bug - Kitten - 19.07.2011

try this

pawn Код:
ClearAnimations(playerid); // OnPlayerDeath and OnPlayerSpawn



Re: Bug - GeonMake - 19.07.2011

Quote:
Originally Posted by Kitten
Посмотреть сообщение
try this

pawn Код:
ClearAnimations(playerid); // OnPlayerDeath and OnPlayerSpawn
good, but why it works after I die and I spawn hospital drops $ 100? (I have no giveplayermoney - 100) look script
pawn Код:
SetPlayerToTeamColor(playerid);
            if(PlayerSpital[playerid] == 1)
            {
                SetPlayerInterior(playerid, 0);
                new rand = random(sizeof(gMedicSpawns));
                SetPlayerPos(playerid, gMedicSpawns[rand][0], gMedicSpawns[rand][1], gMedicSpawns[rand][2]); // Warp the player
                SetPlayerFacingAngle(playerid, 92.3221);
                TogglePlayerControllable(playerid, 0);
                GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~y~Esti in spital pentru a-ti reface ~r~ranile~y~...", 35000, 3);
                ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
                PlayerSpital[playerid] = 0;
                SetTimerEx("ReleaseFromHospital", 30000, 0, "i", playerid);
                SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
            }