Raised This Month: $32 Target: $400
 8% 

Fix The Bug of Chat...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 03-25-2017 , 17:09   Fix The Bug of Chat...
Reply With Quote #1

Hi, at first i will explain my problem:
my problem is when i say "/" or "!" its show normal chat not with thag admins and i tired deleted like

PHP Code:
    if(message[0] == '@' || message[0] == '/' || message[0] == '!' || equal(message"")) // Ignores Admin Hud Messages, Admin Slash commands, 
it show when i say / or ! normal with the tag but if ther is menu like vip menu and me said /vipmenu it wont work because that chat.....
so could some one fix this bug?

PHP Code:
public hook_say(id)
{
    if(!(
get_user_flags(id) & ADMIN_BAN))
        return 
PLUGIN_CONTINUE;
    
read_args(message191)
    
remove_quotes(message)
    
    
// Gungame commands and empty messages
    
if(message[0] == '@' || message[0] == '/' || message[0] == '!' || equal(message"")) // Ignores Admin Hud Messages, Admin Slash commands,
        
return PLUGIN_CONTINUE
    
    
new name[32]
    
get_user_name(idname31)
    
    new 
isAlive
    
    
if(is_user_alive(id))
    {
        
isAlive 1
        alive 
"^x01"
    
}
    else
    {
        
isAlive 0
        alive 
"^x01*DEAD* "
    
}
    
    static 
color[10]
    
get_user_team(idcolor9)
    
format(strName191"^x04[ADMINAS] %s^x03%s "alivename)
    
format(strText191"^x03%s"message)
    
format(message191"%s^x01: %s"strNamestrText)
    
sendMessage(colorisAlive)
    
    return 
PLUGIN_HANDLED
}
 
 
public 
hook_teamsay(id)
{
    if(!(
get_user_flags(id) & ADMIN_BAN))
        return 
PLUGIN_CONTINUE;
    new 
playerTeam get_user_team(id)
    new 
playerTeamName[19]
    
    switch(
playerTeam// Team names which appear on team-only messages
    
{
        case 
1:
            
copy(playerTeamName11"Terrorists")
    
        case 
2:
            
copy(playerTeamName18"Counter-Terrorists")
    
        default:
            
copy(playerTeamName9"Spectator")
    }
    
    
read_args(message191)
    
remove_quotes(message)
    
    
// Gungame commands and empty messages
    
if(message[0] == '@' || message[0] == '/' || message[0] == '!' || equal(message"")) // Ignores Admin Hud Messages, Admin Slash commands,
        
return PLUGIN_CONTINUE
    
    
new name[32]
    
get_user_name(idname31)
    
    
    new 
isAlive
    
    
if(is_user_alive(id))
    {
        
isAlive 1
        alive 
"^x01"
    
}
    else
    {
        
isAlive 0
        alive 
"^x01*DEAD* "
    
}
    
    static 
color[10]
    
color "TERRORIST"
    
format(strName191"%s(%s)^x04[ADMINAS] ^x03%s"aliveplayerTeamNamename)
    
copy(color9"TERRORIST")
    
format(strText191"^x03%s"message)
    
format(message191"%s ^x01: %s"strNamestrText)
    
sendTeamMessage(colorisAliveplayerTeam)
    
    return 
PLUGIN_HANDLED

__________________

Last edited by D3XT3R; 03-25-2017 at 17:11.
D3XT3R is offline
Send a message via Skype™ to D3XT3R
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-25-2017 , 17:23   Re: Fix The Bug of Chat...
Reply With Quote #2

Make the plugin "lastest" in plugins.ini
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 03-25-2017 , 17:26   Re: Fix The Bug of Chat...
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
Make the plugin "lastest" in plugins.ini
thanx for this help but i dont need yours great gold comment i need solution not a comment and i know you will do yours best to help me so help me :v
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-25-2017 , 17:42   Re: Fix The Bug of Chat...
Reply With Quote #4

Quote:
Originally Posted by D3XT3R View Post
thanx for this help but i dont need yours great gold comment i need solution not a comment and i know you will do yours best to help me so help me :v
His "comment" is the solution. Unfortunately, for someone who doesn't speak english, it might be hard to understand.

It means that you need to put this plugin which you posted about at the bottom of plugins.ini.
__________________
fysiks is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 03-25-2017 , 17:54   Re: Fix The Bug of Chat...
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
His "comment" is the solution. Unfortunately, for someone who doesn't speak english, it might be hard to understand.

It means that you need to put this plugin which you posted about at the bottom of plugins.ini.
i think he jocking -.-, my fault i dont understand good english and by word "buttom" you mean at first of plugins or what?
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-25-2017 , 17:59   Re: Fix The Bug of Chat...
Reply With Quote #6

Quote:
Originally Posted by D3XT3R View Post
i think he jocking -.-, my fault i dont understand good english and by word "buttom" you mean at first of plugins or what?
bottom
__________________

Last edited by fysiks; 03-25-2017 at 17:59.
fysiks is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 03-25-2017 , 18:00   Re: Fix The Bug of Chat...
Reply With Quote #7

Quote:
Originally Posted by fysiks View Post
Well, you could easily search for what it means. Make sure that you actually spell it correctly.
Well, i need plugin help hier not english help lesson....................
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 03-25-2017 , 18:01   Re: Fix The Bug of Chat...
Reply With Quote #8

....
Quote:
Bottom est une série télévisée britannique, en 18 épisodes de 30 minutes, créée par Adrian Edmondson et Rik Mayall et diffusée entre le 17 septembre 1991 et le 10 février 1995 sur BBC Two. En France, la série a été diffusée sur Jimmy.
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 03-25-2017 , 18:02   Re: Fix The Bug of Chat...
Reply With Quote #9

so i need watch that film to plugin get fixet? or i need add the film in the server to chat work perfectly
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 03-25-2017 , 18:02   Re: Fix The Bug of Chat...
Reply With Quote #10

Quote:
Originally Posted by D3XT3R View Post
Well, i need plugin help hier not english help lesson....................
Well, you are on an english forum. Use a translator.
__________________
fysiks 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 06:19.


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