Quote:
Originally Posted by iNspiratioN
Simply change (+2) -> (+1) {To change HEALTH}
PHP Code:
#define TASK_REPARE2 999
public autorepare2(id) { if ( id > TASK_REPARE2 ) id -= TASK_REPARE2; if ( !is_user_alive(id) ) return ; set_user_health( id, get_user_health(id) +1 ) }
Then set_task( 1.0,"autorepare2", TASK_REPARE2+id )
I think like this... post here if you will get error at this.
|
lol. but i cant have 2 time this here :
PHP Code:
public autorepare(id)
{
if ( id > TASK_REPARE )
id -= TASK_REPARE ;
if ( !is_user_alive(id) )
return ;
set_user_health( id, get_user_health(id) +1 )
}
PHP Code:
public autorepare(id)
{
if ( id > TASK_REPARE )
id -= TASK_REPARE ;
if ( !is_user_alive(id) )
return ;
set_user_health( id, get_user_health(id) +2 )
}
Example :
race 1 become +2
race 2 become +3
race 4 become +5
or is it poss. that i try this so :
PHP Code:
public autorepare(id)
{
if ( id > TASK_REPARE )
id -= TASK_REPARE ;
if ( !is_user_alive(id) )
return ;
set_user_health( id, get_user_health(id) +1 )
}
PHP Code:
set_task( 1.0,"autorepare2", TASK_REPARE2+id+id+id+id )
__________________