CMD /heal
#1

Hello, I made a CMD /heal. It costs 1500$ to heal a player but can someone tell me that if the player don't have 1500$ he must get a message "You don't have enough cash" and he shouldn't be healed. And if players health is already full then if he types /heal he should get a message "You already have 100% health".
Currently this is my CMD:-
PHP код:
CMD:heal(playerid,params[])
{
     
SetPlayerHealth(playerid100.0);
     
SendClientMessage(playerid, -1"You have healed yourself for 1500$.");
     
GivePlayerMoney(playerid, -1500);
     return 
1;

Reply


Messages In This Thread
CMD /heal - by LifeRah - 08.08.2016, 10:10
Re: CMD /heal - by Konstantinos - 08.08.2016, 10:17
Re: CMD /heal - by Ahmed21 - 08.08.2016, 11:26
Re: CMD /heal - by LifeRah - 08.08.2016, 12:27
Re: CMD /heal - by Ahmed21 - 08.08.2016, 12:31
Re: CMD /heal - by Mencent - 08.08.2016, 12:36
Re: CMD /heal - by Dayrion - 08.08.2016, 12:44
Re: CMD /heal - by Bolex_ - 08.08.2016, 12:47
Re: CMD /heal - by F1N4L - 08.08.2016, 12:49
Re: CMD /heal - by Dayrion - 08.08.2016, 12:56

Forum Jump:


Users browsing this thread: 1 Guest(s)