Help me about New death animation
#7

Quote:
Originally Posted by N0FeaR
Посмотреть сообщение
Try this!
Still not working I will show you the code all of my ApplyAnimation when died of my gamemode.
PHP код:
//1
if(GetPVarInt(i"EMSAttempt") == -1)
                {
                    if(
GetPlayerAnimationIndex(i) != 746ClearAnimations(i), ApplyAnimation(i"CRACK""null"4.0000101);
                    if(!
GetPVarType(i"StreamPrep") && !IsPlayerInRangeOfPoint(i3.0GetPVarFloat(i,"MedicX"), GetPVarFloat(i,"MedicY"), GetPVarFloat(i,"MedicZ")) && !GetPVarInt(i"OnStretcher"))
                    {
                        
SendClientMessageEx(iCOLOR_WHITE"Ban da bi bat tinh, ban se duoc dua ve benh vien de dieu tri.");
                        
KillEMSQueue(i);
                        
                        
SpawnPlayer(i);
                    }
                    
GameTextForPlayer(i"~r~Bi thuong~n~~w~/chapnhan chet hoac /dichvu capcuu"50003);
                }
//2
if(GetPVarInt(i"EMSAttempt") == 1)
                {
                    if(
GetPlayerAnimationIndex(i) != 746ClearAnimations(i), ApplyAnimation(i"CRACK""null"4.0000101);
                    if(!
GetPVarType(i"StreamPrep") && !IsPlayerInRangeOfPoint(i3.0GetPVarFloat(i,"MedicX"), GetPVarFloat(i,"MedicY"), GetPVarFloat(i,"MedicZ")) && !GetPVarInt(i"OnStretcher"))
                    {
                        
SendClientMessageEx(iCOLOR_WHITE"You fell unconscious, you were immediately sent to the hospital.");
                        
KillEMSQueue(i);
                        
                        
SpawnPlayer(i);
                    }
                    
GameTextForPlayer(i"~r~Injured~n~~w~Waiting for EMS to Arrive..."50003);
                }
//3
if(GetPlayerInterior(playerid) > 0Player_StreamPrep(playeridGetPVarFloat(playerid,"MedicX"), GetPVarFloat(playerid,"MedicY"), GetPVarFloat(playerid,"MedicZ"), FREEZE_TIME);
            
GameTextForPlayer(playerid"~r~Bi thuong~n~~w~/chapnhan chet hoac /dichvu capcuu"50003);
            
ClearAnimations(playerid);
            
ApplyAnimation(playerid"CRACK""null"4.0000101);
            
SetPlayerHealth(playerid100);
            
RemoveArmor(playerid);
            if(
GetPVarInt(playerid"usingfirstaid") == 1)
            {
                
firstaidexpire(playerid);
            }
//4
if(GetPVarType(iPlayer"MedicCall")) {
                
ClearAnimations(iPlayer);
                
ApplyAnimation(playerid"CRACK""null"4.0000101);
            }
            
DeletePVar(iPlayer"StreamPrep");
//5
if(GetPVarType(playerid"Injured"))
        {
            
            
SetPlayerPos(playeridGetPVarFloat(playerid,"MedicX"), GetPVarFloat(playerid,"MedicY"), GetPVarFloat(playerid,"MedicZ"));
            
ClearAnimations(playerid);
            
ApplyAnimation(playerid"CRACK""null"4.0000101);
        } 
Reply


Messages In This Thread
Help me about New death animation - by Bumie - 28.10.2015, 13:19
Re: Help me about New death animation - by N0FeaR - 29.10.2015, 06:00
Re: Help me about New death animation - by Bumie - 29.10.2015, 13:01
Re: Help me about New death animation - by DemME - 29.10.2015, 16:38
Re: Help me about New death animation - by Bumie - 30.10.2015, 09:03
Re: Help me about New death animation - by N0FeaR - 30.10.2015, 13:47
Re: Help me about New death animation - by Bumie - 30.10.2015, 16:04
Re: Help me about New death animation - by N0FeaR - 30.10.2015, 16:48
Re: Help me about New death animation - by Bumie - 31.10.2015, 10:56
Re: Help me about New death animation - by N0FeaR - 01.11.2015, 08:20

Forum Jump:


Users browsing this thread: 2 Guest(s)