14.06.2011, 04:08
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;
}
pawn Code:
SetPlayerHealth(i,10+);