death random - 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: death random (
/showthread.php?tid=631510)
death random -
crukk11 - 30.03.2017
how to make change death animation or random death animation
Re: death random -
Toroi - 30.03.2017
There's few ways of doing it, I usually do it this way:
PHP код:
switch(random(3))
{
case 0: ApplyAnimation(...);
case 1: ApplyAnimation(...);
...
}
Re: death random -
crukk11 - 30.03.2017
where should put this on any callback
Sorry bad english
Re: death random -
Toroi - 30.03.2017
What are you trying to do again? Your explanation seemed clear but your response made me doubt.
What do you want to do? Explain yourself quite better.
Re: death random -
Kraeror - 30.03.2017
Put this:
Quote:
stock randomEx(minnum = cellmin, maxnum = cellmax) return random(maxnum - minnum + 1) + minnum;
|
And put this on your OnPlayerDeath callback:
Quote:
new rspawn = random(4);
switch (rspawn)
{
case 0: ApplyAnimation(...); //here put your animation inf. for the first case of animation
case 1: ApplyAnimation(...); //here put your animation inf. for the second case of animation
case 2: ApplyAnimation(...); //here put your animation inf. for the 3th case of animation
}
|
GOOD LUCK
.
REP me if i helped you
!
Re: death random -
GoldenLion - 30.03.2017
You can't apply an animation on death, but you can make a serversided health system or use Slice's weapon-config include.
Re: death random -
crukk11 - 31.03.2017
not work
Re: death random -
crukk11 - 01.04.2017
So how to apply death animation