swat anim help
#1

I will die when I hit in the ground, lmao..
what's the problem?
PHP код:
CMD:slide(playeridparams[])
{
     if(!
IsAARMY(playerid)) return SendClientMessage(playeridCOLOR_GREY"You aren't a Army member to use this command.");
     
ApplyAnimation(playerid,"ped","abseil",4.0,0,0,0,1,0);
     return 
1;

Reply
#2

Hello!

In this command there aren't any problems? When you die in the game?

Mencent
Reply
#3

No no, it starts sliding but when i hit in the ground i will die...
Reply
#4

So?
PHP код:
ApplyAnimation(playerid,"","",0,0,0,0,0,0);
        
ApplyAnimation(playerid,"ped","abseil",4.0,0,0,0,1,0); 
Mencent
Reply
#5

When the player does /slide set his health to 1000, and then when he reaches the ground, his health get back to his previous health.Anyways, i have released the same scripts, you can add them if you want.

S.W.A.T Sliding/Roping V1 By Karan007 : http://forum.sa-mp.com/showthread.ph...00#post3397000
S.W.A.T Sliding/Roping V2 By Karan007 : http://forum.sa-mp.com/showthread.ph...85#post3407485
Reply
#6

whats that?
Add
PHP код:
 ApplyAnimation(playerid,"","",0,0,0,0,0,0); 
to the command?
Reply
#7

Quote:
Originally Posted by karan007
Посмотреть сообщение
When the player does /slide set his health to 1000, and then when he reaches the ground, his health get back to his previous health.Anyways, i have released the same scripts, you can add them if you want.
so, sethp(playerid, 1000); and getplayerhealth(playerid); in /slide command.
but how i will know that he is on ground?
Reply
#8

> Use GetPlayerHealth to get his health and store it in a variable.
> Use SetPlayerHealth to give him 999999999.0 (immortal) health.
> Use SetPlayerHealth when he lands to give him his original hp.
Reply
#9

How I will know that he is on the ground?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)