Raised This Month: $ Target: $400
 0% 

Prevent spawn after roundstart


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-25-2009 , 13:42   Re: Prevent spawn after roundstart
Reply With Quote #2

Try this:
Code:
#include <amxmodx> #include <amxmisc> #include <hamsandwich> new bool:g_round_started; public plugin_init() {     register_logevent("EventRoundStart", 2, "1=Round_Start");     register_logevent("EventRoundEnd", 2, "1=Round_End");     register_event("TextMsg", "EventRoundEnd", "a", "2=#Game_Commencing", "2=#Game_will_restart_in");         RegisterHam(Ham_Spawn, "player", "FwdPlayerSpawn", 1); } public EventRoundStart() {     g_round_started = true; } public EventRoundEnd() {     g_round_started = false; } public FwdPlayerSpawn(client) {     if( g_round_started )     {         user_silentkill(client);     } }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 01-25-2009 at 22:56.
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 01:45.


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