Raised This Month: $ Target: $400
 0% 

Frage 35hp Map


  
 
 
Thread Tools Display Modes
Author Message
David26
Junior Member
Join Date: Jun 2011
Old 01-30-2012 , 01:47   Frage 35hp Map
#1

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
__________________
Besucht mal unsere Homepage:http://www.multiclan-germany.de
David26 is offline
Sunshine live
Veteran Member
Join Date: May 2009
Location: Berlin
Old 01-30-2012 , 08:31   Re: Frage 35hp Map
#2

Sollten das bestimmte maps sehn? Oder allgemein wie Dust2 und und und?
__________________
Sunshine live is offline
Send a message via ICQ to Sunshine live Send a message via MSN to Sunshine live Send a message via Skype™ to Sunshine live
David26
Junior Member
Join Date: Jun 2011
Old 01-31-2012 , 10:08   Re: Frage 35hp Map
#3

HI...

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

Gruß David
__________________
Besucht mal unsere Homepage:http://www.multiclan-germany.de
David26 is offline
David26
Junior Member
Join Date: Jun 2011
Old 02-09-2012 , 02:09   Re: Frage 35hp Map
#4

Kann keiner Helfen?
__________________
Besucht mal unsere Homepage:http://www.multiclan-germany.de
David26 is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 02-09-2012 , 11:01   Re: Frage 35hp Map
#5

Wie heisst die Map denn?
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
David26
Junior Member
Join Date: Jun 2011
Old 02-09-2012 , 11:13   Re: Frage 35hp Map
#6

35hp_reborn ist das...
__________________
Besucht mal unsere Homepage:http://www.multiclan-germany.de
David26 is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 02-09-2012 , 12:39   Re: Frage 35hp Map
#7

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))
    }

__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
David26
Junior Member
Join Date: Jun 2011
Old 02-09-2012 , 13:10   Re: Frage 35hp Map
#8

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
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 02-10-2012 , 11:49   Re: Frage 35hp Map
#9

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))
    }

hihi

Hallo,

Bibu kannst den CVar auch gleich ins init rein tun und nicht im if-anfrage!
und könntest auch n kleinen task nach spawn geben weill bei manchen knife maps die leute werden von oben gespawnt damit die HP verlieren. und wenn die gleich von anfang an 35 bekommen, und die map auf einmal richtig funz, wirds etwas problematisch

und sonst alles ok?
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
SeToY
SourceMod Donor
Join Date: Jul 2006
Location: Germany
Old 02-10-2012 , 17:31   Re: Frage 35hp Map
#10

Quote:
Originally Posted by One View Post
bei manchen knife maps
Quote:
Originally Posted by bibu View Post
PHP Code:
    if(equali(szMap"35hp_reborn")) 
__________________
Success is a lousy teacher. It seduces smart people into thinking they can't lose.
- Bill Gates

Quote:
Originally Posted by Hawk552
SeToY is a retard, scumbag and asshole and you shouldn't pretend that he isn't.
SeToY is offline
 


Thread Tools
Display Modes

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