Raised This Month: $ Target: $400
 0% 

Zombie Spawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 08-26-2008 , 11:51   Zombie Spawn
Reply With Quote #1

I was wondering if someone could script a plugin that can make zombies spawn by the command /zspawn
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 08-26-2008 , 12:05   Re: Zombie Spawn
Reply With Quote #2

Try this:
PHP Code:
#include <amxmodx>
#include <fun>
 
#define TEAM_T 1
 
public plugin_init()
{
        
register_plugin("Zombie Spawn""1.0""hleV")
 
        
register_clcmd("say /zspawn""cmdSpawn")
}
 
public 
cmdSpawn(id)
{
        if (!
is_user_connected(id) || !is_user_alive(id))
                return
 
        if (
get_user_team(id) == TEAM_T)
        {
                
set_task(0.1"taskSpawn"id)
                
set_task(0.2"taskSpawn"id)
        }
}
 
public 
taskSpawn(id)
{
        if (!
is_user_connected(id) || !is_user_alive(id))
                return
 
        
spawn(id)

Also could use Ham Sandwich spawn instead of Fun but w/e.
__________________
hleV is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 08-26-2008 , 13:04   Re: Zombie Spawn
Reply With Quote #3

Thanks
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 08-26-2008 , 13:05   Re: Zombie Spawn
Reply With Quote #4

1 more thing, can you help me get it to scroll a message saying, "Type /zspawn to respawn as a zombie"
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
Fawkes37
Senior Member
Join Date: Jul 2008
Old 08-26-2008 , 14:24   Re: Zombie Spawn
Reply With Quote #5

Quote:
Originally Posted by DruGzOG View Post
1 more thing, can you help me get it to scroll a message saying, "Type /zspawn to respawn as a zombie"
if ur using biohazard, there already is a sub-plugin which does all the work ur looking for.
Fawkes37 is offline
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 08-26-2008 , 14:32   Re: Zombie Spawn
Reply With Quote #6

I dont use Biohazard though
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
scrtxxcaz
Senior Member
Join Date: Feb 2007
Location: a place u cant find
Old 08-26-2008 , 14:43   Re: Zombie Spawn
Reply With Quote #7

An easy way to make a scroll message is go into .../amxmodx/configs/ and find amxx.cfg and find amx_scrollmsg "message" <time in seconds>. Put your message there. Im not sure of any other way to do it, maybe someone else knows, but this might help you for now.

EDIT: I found this http://forums.alliedmods.net/showthr...message+plugin... might be useful
__________________
Please leave your name when giving me any karma

Counter Strike Freeze Tag
Status: Testing.... (bugs)

Revised Registration
Status: In Progress

Last edited by scrtxxcaz; 08-26-2008 at 16:29.
scrtxxcaz is offline
Send a message via AIM to scrtxxcaz
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 08-26-2008 , 15:53   Re: Zombie Spawn
Reply With Quote #8

Well, i wanted it encrypted into the script so that i dont have to edit the amxx.cfg, because i already have tons of scroll messages. Is it possible to encrypt amx_scrollmsg into the plugin?
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
DruGzOG
Veteran Member
Join Date: Nov 2007
Location: Unknown
Old 08-27-2008 , 10:22   Re: Zombie Spawn
Reply With Quote #9

It doesn't work

Also, is their a respawn version for an older version of biohazard?
__________________
DruGzOG is offline
Send a message via AIM to DruGzOG
Reply



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


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