Need help Whit Some Please :)
#1

Hello.

Fist thing: ok I scriptin this Gamemode and i need someone to Help me whit this
When a players health is under 10 its make one of those animations:

crckdeth1
crckdeth2
crckdeth3
crckdeth4
crckidle1
crckidle2
crckidle3
crckidle4
(Dont know if theres any difference in the animations xD)

Should i use a timer to check ? or something other ?
and when health is under 10 its Sets a timer so when there is gone 5 mins hes life will go up to 20
Reply
#2

Code:
new Float:HP;
new hp = GetPlayerHealth(playerid,HP);
if(hp==90)
{
Your Animation
} 
else if(hp==80)
{
YourAnimation
}
....
;]
Reply
#3

Quote:
Originally Posted by Diler
Code:
new Float:HP;
new hp = GetPlayerHealth(playerid,HP);
if(hp==90)
{
Your Animation
} 
else if(hp==80)
{
YourAnimation
}
....
;]
But should i use a timer ?? To Check when the players life is low ??
Reply
#4

Quote:
Originally Posted by ZutDenOpFraSlap
Quote:
Originally Posted by Diler
Code:
new Float:HP;
new hp = GetPlayerHealth(playerid,HP);
if(hp==90)
{
Your Animation
} 
else if(hp==80)
{
YourAnimation
}
....
;]
But should i use a timer ?? To Check when the players life is low ??
Yes
Reply
#5

Quote:
Originally Posted by Andom
Quote:
Originally Posted by ZutDenOpFraSlap
Quote:
Originally Posted by Diler
Code:
new Float:HP;
new hp = GetPlayerHealth(playerid,HP);
if(hp==90)
{
Your Animation
} 
else if(hp==80)
{
YourAnimation
}
....
;]
But should i use a timer ?? To Check when the players life is low ??
Yes
ok many thx
Reply
#6

OnPlayerUpdate is a better place to put this.
Reply
#7

Quote:
Originally Posted by OmeRinG
OnPlayerUpdate is a better place to put this.
Hmm lol dont have OnPlayerUpdate.. ?
Knows why i have the samp 2.0XX or what ever its name
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)