Raised This Month: $ Target: $400
 0% 

Help REQ! ChatPrefix Bug!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zer0Cool
Member
Join Date: Sep 2011
Location: Belgium
Old 09-28-2011 , 12:35   Help REQ! ChatPrefix Bug!
Reply With Quote #1

Hello i Got a bug in a prefix plugin i used it on my server But when i got a Prefix Bihand my Name
i cant open Menu's with html stuff in it ore SayCmds (bv !slay) Can anyone help me ?
PHP Code:
        public CmdSay(id)
{
    new 
iLevelName[100];
    
    if(
RankPoints[id] > 0)
    {
        
formatex(iLevelNamecharsmax(iLevelName), "%s"RankNames[GangLevel[id]]);
    }
    else
    {
        
formatex(iLevelNamecharsmax(iLevelName), "NewRank");
    }
    
    new 
message[192], szName[32], none[2][32], chat[192];
    
    
read_args (message191)
    
remove_quotes (message)
    
    
formatex(none[0], 31""), formatex(none[1], 31" ")
        
    if(!
equali(messagenone[0]) && !equali(messagenone[1]) && cs_get_user_team(id) != CS_TEAM_SPECTATOR && cs_get_user_team(id) != CS_TEAM_CT )
    {
        
get_user_name(idszName31);
        
        if(
is_user_alive(id))
            
formatex(chat191"^4[%s]^3 %s : ^1%s^1"iLevelNameszNamemessage)
        else
            
formatex(chat191"^1* DEAD *^1 ^4[%s]^3 %s : ^1%s^1"iLevelNameszNamemessage)
            
        switch(
cs_get_user_team(id))
        {
            case 
1ColorChat(0REDchat)
            case 
2ColorChat(0BLUEchat)
        }
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_CONTINUE

Zer0Cool is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 09-28-2011 , 13:22   Re: Help REQ! ChatPrefix Bug!
Reply With Quote #2

put this plugin on the last line in plugins.ini
jimaway is offline
Zer0Cool
Member
Join Date: Sep 2011
Location: Belgium
Old 09-28-2011 , 13:29   Re: Help REQ! ChatPrefix Bug!
Reply With Quote #3

Quote:
Originally Posted by jimaway View Post
put this plugin on the last line in plugins.ini
Yes i know i did But then i got the problem when i add a menu in the prefix plugin i cant open it ...
Zer0Cool is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 09-28-2011 , 13:39   Re: Help REQ! ChatPrefix Bug!
Reply With Quote #4

register menu opening command before CmdSay, or edit CmdSay to check if message equals with your menu command and open your menu from there
jimaway is offline
Zer0Cool
Member
Join Date: Sep 2011
Location: Belgium
Old 09-28-2011 , 15:16   Re: Help REQ! ChatPrefix Bug!
Reply With Quote #5

Quote:
Originally Posted by jimaway View Post
register menu opening command before CmdSay, or edit CmdSay to check if message equals with your menu command and open your menu from there
It Dsnt work when i put the menu for the say cmds Still the Same bug Cant i just not delete the bug ore somthing ?

Last edited by Zer0Cool; 09-28-2011 at 15:45.
Zer0Cool is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 09-28-2011 , 15:45   Re: Help REQ! ChatPrefix Bug!
Reply With Quote #6

there is no bug, its just that you block every message players write and print out your own
jimaway is offline
Zer0Cool
Member
Join Date: Sep 2011
Location: Belgium
Old 09-28-2011 , 15:47   Re: Help REQ! ChatPrefix Bug!
Reply With Quote #7

Quote:
Originally Posted by jimaway View Post
there is no bug, its just that you block every message players write and print out your own
i Still Cant open The Menu i puted into the plugin Still got the same Problem Cant i just set a Prefix indeed of the Name from the player and his say txt
Zer0Cool is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 09-28-2011 , 16:03   Re: Help REQ! ChatPrefix Bug!
Reply With Quote #8

post full code
jimaway is offline
Zer0Cool
Member
Join Date: Sep 2011
Location: Belgium
Old 09-28-2011 , 16:10   Re: Help REQ! ChatPrefix Bug!
Reply With Quote #9

Quote:
Originally Posted by jimaway View Post
post full code

Last edited by Zer0Cool; 09-28-2011 at 17:24.
Zer0Cool is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 09-28-2011 , 16:29   Re: Help REQ! ChatPrefix Bug!
Reply With Quote #10

maybe your menu doesent work cause it doesent exist in that plugin? lol
jimaway is offline
Reply


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


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