OnPlayerKeyStateChange help...
#5

Quote:
Originally Posted by Don_Cage
Посмотреть сообщение
I just took a quick look on it and noticed that you have put like this
pawn Код:
GetPlayerHealth(playerid, Health);
                                        if(Health < 100.0)
                                        {
                                                SendClientMessage(playerid, -1, "Player have full health.");
                                        }
That will send the message if the player have UNDER 100.0 but it will still say that the player have full health. change it from < to >
Or just try to put like:

PHP код:
 GetPlayerHealth(playeridphealth);
if(
phealth >= 99)
{
SendClientMessage(playeridCOLOR"The player next to you have full health and don't need cares.");
return 
1;

So it don't bug, call it a safety system.. If the player has more than 99 life points its like have 100..


Next you need this

https://sampwiki.blast.hk/wiki/Keys

and read this so you can learn something basic and try it.

https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
Reply


Messages In This Thread
**DELETE** - by Pettersen - 18.05.2013, 23:36
AW: OnPlayerKeyStateChange help... - by HurtLocker - 18.05.2013, 23:43
**DELETE** - by Pettersen - 19.05.2013, 00:02
Re: OnPlayerKeyStateChange help... - by Don_Cage - 19.05.2013, 00:10
Re: OnPlayerKeyStateChange help... - by CrusherCpt - 19.05.2013, 00:50
Re: OnPlayerKeyStateChange help... - by Don_Cage - 19.05.2013, 02:47
Re: OnPlayerKeyStateChange help... - by [DX]Aru12345 - 19.05.2013, 04:56
Re: OnPlayerKeyStateChange help... - by CrusherCpt - 19.05.2013, 09:44
**DELETE** - by Pettersen - 19.05.2013, 10:21
Re: OnPlayerKeyStateChange help... - by Littlehelper - 19.05.2013, 10:34

Forum Jump:


Users browsing this thread: 2 Guest(s)