Raised This Month: $ Target: $400
 0% 

zspawn


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-02-2009 , 18:11   Re: zspawn
Reply With Quote #2

Test it without the biohazard portion of the plugin.
Also, you don't need a delay between team change and spawning.

Code:
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
new PLUG[] = "Zombie Respawn";
new VERS[] = "1.0";
new AUTH[] = "LeviN & Stewie!";
public plugin_init()
{
    register_plugin(PLUG, VERS, AUTH);
   
    register_clcmd("say !zspawn", "Spawn");
    register_clcmd("say_team !zspawn", "Spawn");
    register_clcmd("say_team /zspawn", "Spawn");
    register_clcmd("say /zspawn", "Spawn");
}
public Spawn(id)
{
    if(!is_user_alive(id))
    {
        cs_set_user_team(id, CS_TEAM_T);
        ExecuteHamB(Ham_Spawn, id);
    }
    return PLUGIN_HANDLED;
}
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 00:39.


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