Raised This Month: $ Target: $400
 0% 

Is This Well Done?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
01101101
BANNED
Join Date: Nov 2009
Location: 9`su 09`n0n7e`r0f76a
Old 05-26-2010 , 12:49   Re: Is This Well Done?
Reply With Quote #1

PHP Code:
if(== 1)
    
one_equals_one true 
01101101 is offline
unnyquee
Senior Member
Join Date: Jun 2009
Location: Constanta, Romania
Old 05-26-2010 , 13:00   Re: Is This Well Done?
Reply With Quote #2

PHP Code:
#include <amxmodx>

#pragma semicolon 1

new bool:g_bFreezeTimeOver;


public 
plugin_init()
{
      
register_plugin("O""M""G");
      
      
register_event("HLTV""Event_NewRound""a""1=0""2=0");

      
register_logevent("LogEvent_RoundStart"2"1=Round_Start");
      
      
register_clcmd("say""ClientCommand_Say");
}

public 
Event_NewRound()
      
g_bFreezeTimeOver false;

public 
LogEvent_RoundStart()
      
g_bFreezeTimeOver true;

public 
ClientCommand_Say(iClient)
{
      if(!
g_bFreezeTimeOver)
      {
            
client_print(iClientprint_chat"* Chat blocked until after freezetime!");
      
            return 
PLUGIN_HANDLED;
      }
      
      return 
PLUGIN_CONTINUE;

Again, not tested.
Test it and tell me how it works .

This will block the chat until after the freezetime. If there is no freezetime (e.g. 'mp_freezetime' value is 0), the chat messages will not be blocked.
__________________

Last edited by unnyquee; 05-27-2010 at 06:54. Reason: edited.
unnyquee is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 05-26-2010 , 14:21   Re: Is This Well Done?
Reply With Quote #3

Ok I will test it later (the others doesn't works)

@Speed!
Idk what do you mean (?
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
unnyquee
Senior Member
Join Date: Jun 2009
Location: Constanta, Romania
Old 05-27-2010 , 06:55   Re: Is This Well Done?
Reply With Quote #4

Code edited and tested .
Works!
__________________
unnyquee is offline
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 05:22.


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