Quote:
Originally Posted by SaM.ThE.MaN
oh, thanx ...
Actually what i did was
PHP Code:
public Health(id)
set_user_health(id, 100 + PlayerLevel)
I forgot to add id after player  .. so it kept sayin array must be indexed, therefore i did it the other way ,
anyways back to the topic:
can you show me how i am supposed to do that
|
Add #include <hamsandwich>
Then:
PHP Code:
register_event("Health", "Health", "be");
PHP Code:
RegisterHam(Ham_Spawn, "player", "Health", 1)
And:
PHP Code:
public Health(id)
{
set_user_health(id, 100 + PlayerLevel[id])
}
PHP Code:
public Health(id)
{
if(is_user_alive(id))
{
set_user_health(id, 100 + PlayerLevel[id])
}
}
__________________