Raised This Month: $ Target: $400
 0% 

ColorChat Function Help


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
Dr7sTyLe
Senior Member
Join Date: Dec 2010
Old 04-25-2011 , 10:30   ColorChat Function Help
#1

i have this code that enabled friendlyfire and type jailbreak box is on
but when i say /box it says on chat:Jailbreak Kox instead of box ..
this is the code:
PHP Code:
#include <amxmodx> 
#include <cstrike> 
#include <colorchat>

#define PLUGIN "Jailbreak Box Mode" 
#define VERSION "1.1" 
#define AUTHOR "@Rabb[i]T-`" 

new iFFiHandler 

public plugin_init() { 
    
register_plugin(PLUGINVERSIONAUTHOR
    
iFF get_cvar_pointer"mp_friendlyfire" 

    
iHandler get_pcvar_numiFF 

    
register_clcmd"say /box""cmdBox" 


public 
cmdBoxid ) { 
    if( !
is_user_connectedid ) || !is_user_aliveid ) || cs_get_user_teamid ) != CS_TEAM_CT ) { 
        return 
PLUGIN_HANDLED 
    


    switch( 
iHandler ) { 
        case 
0: { 
            
server_cmd"mp_friendlyfire 1" 
            
set_hudmessage(02550, -1.0, -1.006.012.0
            
show_hudmessage(id"Jailbreak Box Activated!"
            
ColorChatid RED "^x03[Jailbreak]Jailbreak ^x04Box Is Turned ^x03On" );
        } 
        case 
1: { 
            
server_cmd"mp_friendlyfire 0" 
            
set_hudmessage(25500, -1.0, -1.006.012.0
            
show_hudmessage(id"Jailbreak Box Deactivated!"
            
ColorChatid RED "^x03[Jailbreak]Jailbreak ^x04Box Is Turned ^x03Off" );
        } 
    } 

    
iHandler = !iHandler 

    
return PLUGIN_HANDLED 


Last edited by ConnorMcLeod; 04-25-2011 at 11:17.
Dr7sTyLe is offline
Old 04-25-2011, 10:34
Dr7sTyLe
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 04-25-2011 , 10:38   Re: ColorChat Function Help
#2

k ^x04Box -> k^x04 Box
__________________

SonicSonedit is offline
Dr7sTyLe
Senior Member
Join Date: Dec 2010
Old 04-25-2011 , 10:39   Re: ColorChat Function Help
#3

Quote:
Originally Posted by SonicSonedit View Post
k ^x04Box -> k^x04 Box
now it says:

[Jailbreak]JailbreakKox Is Turned O
Dr7sTyLe is offline
Old 04-25-2011, 10:46
Dr7sTyLe
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Closed Thread



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 19:47.


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