Raised This Month: $ Target: $400
 0% 

help, this plugin doesnt give health


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Zapdos1
BANNED
Join Date: Jul 2009
Location: Chile - La Serena
Old 12-31-2009 , 16:51   help, this plugin doesnt give health
Reply With Quote #1

PHP Code:
#include <amxmodx> 
#include <hamsandwich> 
#include <fun>

#define health 50

public plugin_init() 

register_plugin("Any plugin""1.0""Zapdos1"
RegisterHam(Ham_Spawn"player""skill")
}

public 
skill(id)
{
    if(
is_user_alive(id))
    {
        
        switch(
get_user_frags(id))
        {
            case 
3:
            {
                
set_user_health(idget_user_health(id) + health)
                
set_hudmessage(210210210, -1.0, -1.006.012.0)
                
show_hudmessage(id"Level 1!")
            }
            case 
6:
            {
                
set_user_armor(id150)
                
set_hudmessage(212212255, -1.0, -1.006.012.0)
                
show_hudmessage(id"Level 2!")
            }
            case 
9:
            {
                
set_hudmessage(127255170, -1.0, -1.006.012.0)
                
show_hudmessage(id"Level 3!")    
            }
            case 
12:
            {
                
set_user_gravity(id400.0
                
set_hudmessage(255212127, -1.0, -1.006.012.0)
                
show_hudmessage(id"Level 4!")
            }
            case 
15:
            {
                
set_hudmessage(85212255, -1.0, -1.006.012.0)
                
show_hudmessage(id"Level 5!")
            }
            case 
18:
            {
                
set_hudmessage(0127255, -1.0, -1.006.012.0)
                
show_hudmessage(id"Level 6!")  
            }
            case 
21:    
            {
                
set_user_maxspeed(id270.0)
                
set_hudmessage(170255255, -1.0, -1.006.012.0)
                
show_hudmessage(id"LEVEL 7!!!!")
            }            
        }
    }

Zapdos1 is offline
 



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 04:09.


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