Raised This Month: $ Target: $400
 0% 

amx_gag


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kooomax
Member
Join Date: Jan 2018
Old 08-27-2023 , 15:58   amx_gag
Reply With Quote #1

I have a problem with xPaw's amx_gag plugin
the problem is with a , time
an admin gagged a player just 3 min and player got 2h gagged plus

ADMIN Hakson: Has gagged NeBuNu123 from speaking for 3 minutes! (say / say_team / voicecomm)
[FURIEN] 2 hours, 1 minute, and 5 seconds left before your ungag!

I use that version of https://github.com/xPaw/AMXX-Gag/blo...er/amx_gag.sma
Because it works with SQL
kooomax is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-27-2023 , 20:47   Re: amx_gag
Reply With Quote #2

What plugin is telling you that there is 2 hours left? It doesn't appear to be xPaw's plugin because his plugin isn't at all related to whatever "furien" is.
__________________
fysiks is offline
kooomax
Member
Join Date: Jan 2018
Old 08-28-2023 , 07:49   Re: amx_gag
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
What plugin is telling you that there is 2 hours left? It doesn't appear to be xPaw's plugin because his plugin isn't at all related to whatever "furien" is.
I only changed the prefix
kooomax is offline
kooomax
Member
Join Date: Jan 2018
Old 08-30-2023 , 16:28   Re: amx_gag
Reply With Quote #4

any help please here
kooomax is offline
kooomax
Member
Join Date: Jan 2018
Old 11-17-2023 , 01:30   Re: amx_gag
Reply With Quote #5

I'm not the only one complaining about this problem

Quote:
Originally Posted by Rirre View Post
It works fine by saving by file, but SQL, strtotime() formats the time incorrectly. iTimeLeft value is a lot higher on map change (leading to much longer time for gagged players to be ungagged on map changes).

Code:
new szDateGagged[DATE_SIZE]; while( SQL_MoreResults(hQuery) ) {     SQL_ReadResult( hQuery, iFieldSteamID, data[GAG_STEAMID], charsmax(data[GAG_STEAMID]) );     SQL_ReadResult( hQuery, iFieldDateGagged, szDateGagged, charsmax(szDateGagged) );     data[GAG_TIME] = SQL_ReadResult( hQuery, iFieldGagTime );     SQL_ReadResult( hQuery, iFieldGagFlags, szFlags, charsmax(szFlags) );
    data[GAG_START] = strtotime( szDateGagged );
    data[GAG_FLAGS] = read_flags( szFlags );     if( data[GAG_TIME] > 0 )     {         iTimeLeft = data[GAG_START] + data[GAG_TIME] - iSystime;         server_print("-- DEBUG: SteamID: %s | Date gagged: %s | length: %i", data[GAG_STEAMID], szDateGagged, iTimeLeft);                 if( iShortestTime > iTimeLeft )         {             iShortestTime = iTimeLeft;         }     }     ArrayPushArray( g_aGagData, data );     TrieSetCell( g_tArrayPos, data[GAG_STEAMID], g_iGagged );     g_iGagged++;     SQL_NextRow( hQuery ); } if( iShortestTime < 999999 ) {     entity_set_float( g_iThinker, EV_FL_nextthink, get_gametime() + iShortestTime );     server_print("-- DEBUG: Shortest time: %i", iShortestTime ); }
Code:
] say test
[AMXX GAG] 55 seconds left before your ungag!
] rcon changelevel stadium4
* Privileges set

Sven Co-op 5.25
Server Engine: 5.0.1.7 (build 8948)
Server Number: 193

- Rirre has joined the game.
Rirre has joined the game.
] say test
[AMXX GAG] 2 hours and 40 seconds left before your ungag!
EDIT: Found out it is timezone related as the SQL server is +2 hours.

Last edited by kooomax; 11-17-2023 at 01:47.
kooomax 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 06:57.


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