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(szMap, 31)
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(id, get_pcvar_num(g_pcvarHealth))
}
}
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.