AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help REQ! ChatPrefix Bug! (https://forums.alliedmods.net/showthread.php?t=168394)

Zer0Cool 09-28-2011 12:35

Help REQ! ChatPrefix Bug!
 
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



jimaway 09-28-2011 13:22

Re: Help REQ! ChatPrefix Bug!
 
put this plugin on the last line in plugins.ini

Zer0Cool 09-28-2011 13:29

Re: Help REQ! ChatPrefix Bug!
 
Quote:

Originally Posted by jimaway (Post 1564824)
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 ...

jimaway 09-28-2011 13:39

Re: Help REQ! ChatPrefix Bug!
 
register menu opening command before CmdSay, or edit CmdSay to check if message equals with your menu command and open your menu from there

Zer0Cool 09-28-2011 15:16

Re: Help REQ! ChatPrefix Bug!
 
Quote:

Originally Posted by jimaway (Post 1564831)
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 ?

jimaway 09-28-2011 15:45

Re: Help REQ! ChatPrefix Bug!
 
there is no bug, its just that you block every message players write and print out your own

Zer0Cool 09-28-2011 15:47

Re: Help REQ! ChatPrefix Bug!
 
Quote:

Originally Posted by jimaway (Post 1564897)
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

jimaway 09-28-2011 16:03

Re: Help REQ! ChatPrefix Bug!
 
post full code

Zer0Cool 09-28-2011 16:10

Re: Help REQ! ChatPrefix Bug!
 
Quote:

Originally Posted by jimaway (Post 1564905)
post full code


jimaway 09-28-2011 16:29

Re: Help REQ! ChatPrefix Bug!
 
maybe your menu doesent work cause it doesent exist in that plugin? lol


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

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