Need help Whit Some Please :) - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need help Whit Some Please :) (
/showthread.php?tid=75146)
Need help Whit Some Please :) -
basker - 29.04.2009
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
Re: Need help Whit Some Please :) -
Diler - 29.04.2009
Code:
new Float:HP;
new hp = GetPlayerHealth(playerid,HP);
if(hp==90)
{
Your Animation
}
else if(hp==80)
{
YourAnimation
}
....
;]
Re: Need help Whit Some Please :) -
basker - 29.04.2009
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 ??
Re: Need help Whit Some Please :) -
Andom - 29.04.2009
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
Re: Need help Whit Some Please :) -
basker - 29.04.2009
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
Re: Need help Whit Some Please :) -
OmeRinG - 29.04.2009
OnPlayerUpdate is a better place to put this.
Re: Need help Whit Some Please :) -
basker - 29.04.2009
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