auto-crack system.
#1

I want to make that if a player has 20 health or lower, he'll automaticly apply to the animation crack.
I couldn't understand how to use GetPlayerHealth with ' if '.
Reply
#2

https://sampwiki.blast.hk/wiki/GetPlayerHealth
Reply
#3

Not helping...
Reply
#4

Quote:
Originally Posted by Darnell
Посмотреть сообщение
Not helping...
There's an example in the wiki that should help...
Reply
#5

I've asked for a auto-crack system.
From the example on wiki, that's what I understood so far :
pawn Код:
new Float:health;
    GetPlayerHealth(playerid,health)
    if(health < 20.0)
    {
    ApplyAnimation(playerid,"PED","crckdeth2",4.1,1,1,1,1,1,1);
    }
I don't know if it's correct, is it ?
Reply
#6

Quote:
Originally Posted by Darnell
Посмотреть сообщение
I've asked for a auto-crack system.
https://sampforum.blast.hk/showthread.php?tid=187229
Reply
#7

Well, can you help me with the code I wrote above ?
Reply
#8

Quote:
Originally Posted by Darnell
Посмотреть сообщение
From the example on wiki, that's what I understood so far :
pawn Код:
new Float:health;
    GetPlayerHealth(playerid,health)
    if(health < 20.0)
    {
    ApplyAnimation(playerid,"PED","crckdeth2",4.1,1,1,1,1,1,1);
    }
I don't know if it's correct, is it ?
It is.
Reply
#9

Where should I put it so it'll work ?
Reply
#10

Anyone ?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)