Raised This Month: $ Target: $400
 0% 

amx_gag


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hoboman
Senior Member
Join Date: Jul 2007
Old 03-16-2008 , 20:26   amx_gag
Reply With Quote #1

bmann: even though I don't use your amx_super anymore I do refer to it a lot and I found two bugs in the amx_gag

1.) this line:
Code:
client_print( 0, print_chat, "%L", LANG_PLAYER, "AMX_SUPER_GAG_CONNECTED", name, g_wasgagged[id] )
should be
Code:
client_print( 0, print_chat, "%L", LANG_PLAYER, "AMX_SUPER_GAG_PLAYER_DISCONNECT", name, g_wasgagged[id] )
2.) the way to block the name change is not right...it changes the player's username to the old name, but it doesn't prevent the name change message( xxx changed name to yyy) because the "client_infochanged" forward is called after the player changed their name apparently

here is the same thing in fakemeta that doesn't have this problem:

in plugin_init:
add
Code:
register_forward( FM_ClientUserInfoChanged, "info_changed" )
delete the whole client_infochanged function

add this in the amx_gag portion:
Code:
public info_changed( id, szInfo[] )
{
    if( g_gagged[id] )
    {
        new newname[32], oldname[32]

        get_user_info( id, "name", newname, 31 )
        get_user_name( id, oldname, 31 )

        if( !equali( newname, oldname ) )
        {
            client_print( id, print_chat, "%L", id, "AMX_SUPER_PLAYER_NAMELOCK" )
            set_user_info( id, "name", oldname )    
        }
    }
}
__________________
hoboman is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 03-16-2008 , 21:13   Re: amx_gag
Reply With Quote #2

well it was EKS' code, which Deviance edited, and I just redid, and its not out yet, but its much different now.

Here is the most current one Im working on. The only other things were gonna do is a few other checks for immunity with @ team and alil weapon command improvement. The only think im sutck on is the ML for AFK manager

I might make the adjustments that you said to the current one, but i think its all good as of now
Attached Files
File Type: sma Get Plugin or Get Source (amx_super.sma - 1094 views - 172.2 KB)
__________________

Last edited by bmann_420; 03-16-2008 at 21:15.
bmann_420 is offline
hoboman
Senior Member
Join Date: Jul 2007
Old 03-17-2008 , 02:40   Re: amx_gag
Reply With Quote #3

I don't think you understand what bugs I am talking about...

1.) gag a player then wait for him to disconnect...it will say something like "gagged player connected" instead of "gagged player disconnected"...this is because of your typo in the ML name
AMX_SUPER_GAG_PLAYER_DISCONNECT is never even used in the entire plugin

2.) gag a player and make him change his name...his name won't actually change in the player scores, but the message will still appear saying that he changed his name to something new

The two fixes that I gave in the first post will fix both of those things...if you don't think that those two are bugs and are not worth making adjustments for then...well, then ignore this topic
__________________

Last edited by hoboman; 03-17-2008 at 02:47.
hoboman is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 03-17-2008 , 11:31   Re: amx_gag
Reply With Quote #4

lol, I got what your saying. And I was saying the gag that is in their now, is a complete re-write of the one you were looking at before. But ill check to see if those 2 bugs are still in their later, since im at work.
__________________
bmann_420 is offline
bmann_420
AMX_Super Pooper
Join Date: Jan 2005
Location: [SuperCentral.co]
Old 03-23-2008 , 01:26   Re: amx_gag
Reply With Quote #5

Alright, i got some time and remembered this. But, the second issue, was fixed with the change I did, or the compelete redo of the gag. Also, the first one, is in putinserver, i dont see how that is right. lol Owell, just lettin yea know.

Here danielkza, the current one im working on
Attached Files
File Type: sma Get Plugin or Get Source (amx_super4.2.sma - 992 views - 167.0 KB)
__________________

Last edited by bmann_420; 10-11-2008 at 19:19.
bmann_420 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 00:36.


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