Raised This Month: $ Target: $400
 0% 

Frage 35hp Map


  
 
 
Thread Tools Display Modes
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 02-10-2012 , 11:49   Re: Frage 35hp Map
#11

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
bibu
Veteran Member
Join Date: Sep 2010
Old 02-10-2012 , 13:59   Re: Frage 35hp Map
#12

Alles tiptop. Naja ich würd es schon ändern wenn er sagt es klappt net wirklich, sonst lass ich es.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
SeToY
SourceMod Donor
Join Date: Jul 2006
Location: Germany
Old 02-10-2012 , 17:31   Re: Frage 35hp Map
#13

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
 



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 08:19.


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