2 posts · 792 views
Thread Rating: ★★★★★
| closedSpawn Health plugin help |
| Started by Beek on 11-23-2008, 01:42 PM |
B
Beek
Threads: 3
Joined: Jan 2008
started this thread
Posts: 9Threads: 3
Joined: Jan 2008
11-23-2008, 01:42 PM
#1
I'm trying to setup a basic zombie server and need to work around some of the bugs in Sturmbot. So instead of using the monsterbot option in sturm I would like to give all axis upon spawn say 600hp. I found a plug for CS and tried to get it to work on DOD but upon spawn it looks like you are running on your side. lolrnrnrnrn
#include <amxmodx> rn#include <fakemeta_util> rn#include <hamsandwich> rnrn#define AXIS 2 rn#define HEALTH 20rn rnpublic plugin_init()rn RegisterHam(Ham_Spawn, "player", "hamSpawn", 1)rnrnpublic hamSpawn(id) rn{ rn if (!is_user_alive(id) || get_user_team(id) != AXIS)rn returnrn set_pev(id, pev_health, HEALTH)rn}rn
B
Beek
Threads: 3
Joined: Jan 2008
started this thread
Posts: 9Threads: 3
Joined: Jan 2008
11-23-2008, 04:38 PM
#2
Ok I got it working. Is this ok to change health in this manner?rnrnrn
rnrn#include <amxmodx> rn#include <fakemeta_util> rn#include <hamsandwich> rn#include <fun>rnrn#define PLUGIN "Zombie Health Increaser"rn#define VERSION "1.0"rn#define AUTHOR "Beek"rn#define AXIS 2 rn#define HEALTH 600rn rnpublic plugin_init(){rn register_plugin(PLUGIN, VERSION, AUTHOR) rn RegisterHam(Ham_Spawn, "player", "hamSpawn", 1)rn}rnrnpublic hamSpawn(id) rn{ rn if (!is_user_alive(id) || get_user_team(id) != AXIS)rn returnrn set_user_health(id,HEALTH)rn}rn
