animation bug
#1

I haave this code for hospital and the animation is not working
pawn Код:
TogglePlayerControllable(playerid, 0);
            SetPlayerVirtualWorld(playerid, playerid);
            SetPlayerInterior(playerid, 18);
            SetPlayerPos(playerid, -219.265029,1410.590087,28.8);
            ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
            SetPlayerCameraPos(playerid, -220.265029,1410.590087,28.2);
            SetPlayerCameraLookAt(playerid, -219.265029,1410.590087,28.0);
            KillTimer(gHospitalTimer[playerid]);
            PlayerHospitalized[playerid] = 1;
            SendClientMessage(playerid, COLOR_LIGHTRED, "You have been killed and must spend some time in the hospital recovering.");
           
            gHospitalTimer[playerid] = SetTimerEx("OnPlayerSpawn", 60000, 0, "d", playerid);
            return 1;
Reply
#2

PHP код:
stock PreloadAnimLib(playeridanimlib[])
        
ApplyAnimation(playeridanimlib"crckdeth2"4.010000);
PreloadAnimLib(playerid"CRACK"); 
Reply
#3

Load the animation libraries once when the player connects.

Check this include http://pastebin.com/QHBFwqTm to know how to preload anim libs.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)