Raised This Month: $ Target: $400
 0% 

Stop_user_hp


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 06-06-2010 , 04:43   Re: Stop_user_hp
Reply With Quote #1

Quote:
Originally Posted by SaM.ThE.MaN View Post
oh, thanx ...
Actually what i did was
PHP Code:
public Health(id)
    
set_user_health(id100 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(id100 PlayerLevel[id])  


PHP Code:
public Health(id)
{
    if(
is_user_alive(id))
    {
        
set_user_health(id100 PlayerLevel[id]) 
    } 

__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:27.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode