Raised This Month: $ Target: $400
 0% 

Frage 35hp Map


  
 
 
Thread Tools Display Modes
Author Message
David26
Junior Member
Join Date: Jun 2011
Old 02-09-2012 , 13:10   Re: Frage 35hp Map
#1

Quote:
Originally Posted by bibu View Post
Ok, versuchs mal mit dem:

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

#define PLUGIN "Custom Health"
#define VERSION "1.0"
#define AUTHOR "AMXX Community"

new g_pcvarHealth

public plugin_init()
{
    
register_plugin(PLUGIN,VERSION,AUTHOR)
    
    new 
szMap[32]
    
get_mapname(szMap31)
    
    if(
equali(szMap"35hp_reborn"))
    {
        
g_pcvarHealth register_cvar("amx_starthp""35")
    
        
RegisterHam(Ham_Spawn"player""player_spawn"1)
    }
    else
    {
        
pause("ad")
    }
}

public 
player_spawn(id
{    
    if(
is_user_alive(id)) 
    {
        
set_user_health(idget_pcvar_num(g_pcvarHealth))
    }


Danke aber wo muß ich das rein machen?
__________________
Besucht mal unsere Homepage:http://www.multiclan-germany.de
David26 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 18:31.


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