Raised This Month: $ Target: $400
 0% 

Help With Slay All Script


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
shadow.hk
Senior Member
Join Date: Dec 2008
Location: WA, Australia
Old 02-15-2009 , 08:38   Help With Slay All Script
Reply With Quote #1

I've only just started scripting (2 days ago) and I need one small code or snippet. I want to make a function to kill everyone on round-end. Except I don't know how...

Here's the code I've made so far (this was my second attempt at a plugin)

PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Round-End Death"
#define VERSION "1.0"
#define AUTHOR "shadow.hk"
new const death_warning[] = "There's 10 Seconds Remaining Before CombatZone Boredom Kills You!"
public plugin_init()
{
 
register_plugin(PLUGINVERSIONAUTHOR)
 
register_logevent("event_round_start",2,"0=World triggered","1=Round_Start");
 
register_logevent("event_round_death",2,"0=World triggered","1=Round_Draw");
}
public 
event_round_start()
{
 
set_task(135.0,"warning_message")
}
public 
warning_message()
{
 
set_hudmessage(255255255, -1.0, -1.006.03.5 0.75 0.75)
 
show_hudmessage(0"[CZ] %s"death_warning)
}
public 
event_round_death(index)
{
 

ANY help would be greatly appreciated
shadow.hk is offline
Send a message via MSN to shadow.hk
 


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 16:51.


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