SA-MP Forums Archive
Stamina? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: General (https://sampforum.blast.hk/forumdisplay.php?fid=13)
+--- Thread: Stamina? (/showthread.php?tid=201643)



Stamina? - Celson - 21.12.2010

Will it ever be possible to set a players stamina level? For example the functions could be like...

SetPlayerStamina(playerid,level);

GetPlayerStamina(playerid);


It would be really useful for some of my scripts.


Respuesta: Stamina? - karloz - 20.02.2011

I really think is a good idea for example

When pressing spacebar

If(GetPlayerStamina(playerid) == 20)
{
ApplyAnimation(That anim when you get wearyafter running alot )
}


or

else If(GetPlayerStamina(playerid) == 30)
{
SendClientMessage(playerid, COLOR, " You cant rob , you are weary
}

Or something like that


Re: Stamina? - Voldemort - 20.02.2011

Try to play with GetPlayerVelocity and SetPlayerVelocity