AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   ColorChat Function Help (https://forums.alliedmods.net/showthread.php?t=155678)

Dr7sTyLe 04-25-2011 10:30

ColorChat Function Help
 
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 



SonicSonedit 04-25-2011 10:38

Re: ColorChat Function Help
 
k ^x04Box -> k^x04 Box

Dr7sTyLe 04-25-2011 10:39

Re: ColorChat Function Help
 
Quote:

Originally Posted by SonicSonedit (Post 1457445)
k ^x04Box -> k^x04 Box

now it says:

[Jailbreak]JailbreakKox Is Turned O


All times are GMT -4. The time now is 19:47.

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