swat anim help - 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: swat anim help (
/showthread.php?tid=570455)
swat anim help -
Rabea - 10.04.2015
I will die when I hit in the ground, lmao..
what's the problem?
PHP код:
CMD:slide(playerid, params[])
{
if(!IsAARMY(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You aren't a Army member to use this command.");
ApplyAnimation(playerid,"ped","abseil",4.0,0,0,0,1,0);
return 1;
}
AW: swat anim help -
Mencent - 10.04.2015
Hello!
In this command there aren't any problems? When you die in the game?
Mencent
Re: swat anim help -
Rabea - 10.04.2015
No no, it starts sliding but when i hit in the ground i will die...
AW: swat anim help -
Mencent - 10.04.2015
So?
PHP код:
ApplyAnimation(playerid,"","",0,0,0,0,0,0);
ApplyAnimation(playerid,"ped","abseil",4.0,0,0,0,1,0);
Mencent
Re: swat anim help -
Karan007 - 10.04.2015
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
Re: swat anim help -
Rabea - 10.04.2015
whats that?
Add
PHP код:
ApplyAnimation(playerid,"","",0,0,0,0,0,0);
to the command?
Re: swat anim help -
Rabea - 10.04.2015
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?
Re: swat anim help -
De4dpOol - 10.04.2015
> 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.
Re: swat anim help -
Rabea - 10.04.2015
How I will know that he is on the ground?