AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   German (https://forums.alliedmods.net/forumdisplay.php?f=19)
-   -   Frage 35hp Map (https://forums.alliedmods.net/showthread.php?t=177267)

David26 01-30-2012 01:47

Frage 35hp Map
 
Hi Leute,

Ich wollte eine 35hp Map auf mein Server machen.....
Aber wenn ich das mache haben alle 100 hp.
Wie kann ich das machen das die 35hp haben nur für die Map?

Gruß David

Sunshine live 01-30-2012 08:31

Re: Frage 35hp Map
 
Sollten das bestimmte maps sehn? Oder allgemein wie Dust2 und und und?

David26 01-31-2012 10:08

Re: Frage 35hp Map
 
HI...

Nur ein Map... die anderen sollen so bleiben!

Gruß David

David26 02-09-2012 02:09

Re: Frage 35hp Map
 
Kann keiner Helfen?

bibu 02-09-2012 11:01

Re: Frage 35hp Map
 
Wie heisst die Map denn?

David26 02-09-2012 11:13

Re: Frage 35hp Map
 
35hp_reborn ist das...

bibu 02-09-2012 12:39

Re: Frage 35hp Map
 
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))
    }



David26 02-09-2012 13:10

Re: Frage 35hp Map
 
Quote:

Originally Posted by bibu (Post 1647333)
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?

bibu 02-09-2012 14:11

Re: Frage 35hp Map
 
Hier http://www.amxmodx.org/webcompiler.cgi

und dann Compile.

David26 02-10-2012 09:50

Re: Frage 35hp Map
 
Cool danke geht alles.


All times are GMT -4. The time now is 18:31.

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