SetPlayerHealth
#8

pawn Code:
// I'll make it as a filterscript.

public OnFilterScriptInit( )
{
    SetTimer( "regenHealth", 3000, true );
    return 1;
}

forward regenHealth( ); public regenHealth( )
{
    for ( new slots = GetMaxPlayers( ), i; i < slots; i ++ )
    {
        if ( !IsPlayerConnected( i ) ) continue;

        new Float: iHealth;
       
        GetPlayerHealth( i, iHealth );

        SetPlayerHealth( i, iHealth + 10.0 );
    }

    return 1;
}
SpiderWalk or RSS_Cops_sandu will not work because :
pawn Code:
SetPlayerHealth(i,10+);
I think.
Reply


Messages In This Thread
SetPlayerHealth - by Cenation - 13.06.2011, 13:27
Re: SetPlayerHealth - by SpiderWalk - 13.06.2011, 13:34
Re: SetPlayerHealth - by Iphone1234g - 13.06.2011, 13:42
Re: SetPlayerHealth - by Cenation - 13.06.2011, 13:46
Re: SetPlayerHealth - by Cenation - 13.06.2011, 13:52
Re: SetPlayerHealth - by Skaizo - 13.06.2011, 15:24
Re: SetPlayerHealth - by Cenation - 14.06.2011, 01:54
Re: SetPlayerHealth - by Basicz - 14.06.2011, 04:08
Re: SetPlayerHealth - by Cenation - 14.06.2011, 04:12
Re: SetPlayerHealth - by Gertin - 14.06.2011, 07:57

Forum Jump:


Users browsing this thread: 3 Guest(s)