/sethp CMD +REP
#8

Quote:
Originally Posted by Dayrion
Посмотреть сообщение
By the way, health is a Float. So your code should looks like:
PHP код:
CMD:sethp(playeridparams[])
{
    new 
Float:bet;
    if(
sscanf(params"f"bet)) return SCM(playerid, -1"USAGE:/sethp (hp).");
    new 
string [128];
    
format(stringsizeof(string), "Your Hp Has Been Setten To %.2f",bet);
    
SCM(playerid, -1string);
    
SetPlayerHealth(playerid bet);
    return 
1;

ik i just give an example fast ...
see what i replied to him...
Reply


Messages In This Thread
/sethp CMD +REP - by Osamakurdi - 04.01.2018, 08:47
Re: /sethp CMD +REP - by FailerZ - 04.01.2018, 08:56
Re: /sethp CMD +REP - by Bolex_ - 04.01.2018, 09:03
Re: /sethp CMD +REP - by Osamakurdi - 04.01.2018, 09:05
Re: /sethp CMD +REP - by Osamakurdi - 04.01.2018, 09:07
Re: /sethp CMD +REP - by Osamakurdi - 04.01.2018, 09:13
Re: /sethp CMD +REP - by Dayrion - 04.01.2018, 09:29
Re: /sethp CMD +REP - by Osamakurdi - 04.01.2018, 09:39
Re: /sethp CMD +REP - by JaKe Elite - 04.01.2018, 10:40
Re: /sethp CMD +REP - by Osamakurdi - 04.01.2018, 11:52

Forum Jump:


Users browsing this thread: 2 Guest(s)