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 03-02-2009 , 18:05   zspawn
Reply With Quote #1

Code:
 
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#tryinclude <biohazard>
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);
        set_task(0.1, "spawn_again", id);
    }
    return PLUGIN_HANDLED;
}
public spawn_again(id)
{
    ExecuteHamB(Ham_Spawn, id);
    set_task(0.1, "make_zombie", id);
}
public make_zombie(id)
{
    infect_user(id);
}
It won't set them as a zombie but would revive a human. I need it to turn them into a zombie.
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
 


Thread Tools
Display Modes

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