PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#include <colorchat>
#tryinclude <zombiezealots>
new PLUG[] = "Zombie Respawn";
new VERS[] = "1.0";
new AUTH[] = "LeviN";
public plugin_init()
{
register_plugin(PLUG, VERS, AUTH);
RegisterHam(Ham_DeathNotice, "player", "player_death", 1);
register_clcmd("say !zspawn", "StartSpawn");
register_clcmd("say /zspawn", "StartSpawn");
}
public player_death(id)
{
ColorChat(0, GREEN, "Type ^"^x03/zspawn^x04^" to respawn as a zombie!");
}
public StartSpawn(id)
{
if(!is_user_alive(id))
{
cs_set_user_team(id, CS_TEAM_T);
set_task(1.0, "spawn_again", id);
}
return PLUGIN_HANDLED;
}
public spawn_again(id)
{
ExecuteHamB(Ham_Spawn, id);
set_task(0.5, "make_zombie", id);
}
public make_zombie(id)
{
infect_user(id);
}
Quote:
L 07/14/2009 - 18:13:52: [AMXX] Run time error 10 (plugin "zspawn.amxx") (native "cs_set_user_team") - debug not enabled!
L 07/14/2009 - 18:13:52: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
|
When I enable debug, the server crashes for some apparent reason, any solutions or fixes I should do?
__________________