[Help]Life
#4

Detoria's code is well ... flawed to the point of not working, I'll try to optimize and fix it
but credits to him for trying
PHP код:
CMD:lifep(playeridparams[])
{
    new 
Float:XFloat:YFloat:Z;
    
GetPlayerPos(playeridXYZ);
    for(new 
iMAX_PLAYERSi++)
    {
            if(
IsPlayerInRangeOfPoint(i5.0XYZ))
                 
SetPlayerHealth(i100.0);
    }
    return 
1;

A couple notes ^
A) when a player does the cmd, he IS connected, there is no need to check
B) natives have a built-in connected check, so just use SetPlayerHealth, if it fails he is not connected
Reply


Messages In This Thread
[Help]Life - by BrnFec - 21.11.2015, 19:41
Re: [Help]Life - by N0FeaR - 21.11.2015, 21:35
Re: [Help]Life - by Detoria - 21.11.2015, 21:42
Re: [Help]Life - by PrO.GameR - 22.11.2015, 08:36

Forum Jump:


Users browsing this thread: 1 Guest(s)