Raised This Month: $ Target: $400
 0% 

Zspawn


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 08-01-2009 , 00:04   Zspawn
Reply With Quote #1

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(PLUGVERSAUTH);
    
    
RegisterHam(Ham_DeathNotice"player""player_death"1);
    
    
register_clcmd("say !zspawn""StartSpawn");
    
register_clcmd("say /zspawn""StartSpawn");
}

public 
player_death(id)
{
    
ColorChat(0GREEN"Type ^"^x03/zspawn^x04^" to respawn as a zombie!");
}

public 
StartSpawn(id)
{
    if(!
is_user_alive(id))
    {
        
cs_set_user_team(idCS_TEAM_T);
        
set_task(1.0"spawn_again"id);
    }
    return 
PLUGIN_HANDLED;
}

public 
spawn_again(id)
{
    
ExecuteHamB(Ham_Spawnid);
    
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?
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
 



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:25.


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