Raised This Month: $51 Target: $400
 12% 

Client disconnected


Post New Thread Reply   
 
Thread Tools Display Modes
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 08-16-2021 , 22:46   Re: Client disconnected
Reply With Quote #11

Quote:
Originally Posted by 666 View Post
good morning guys, this is the version of amxmodx
PHP Code:
AMX Mod X 1.9.0.5281 (http://www.amxmodx.org)
Authors:
        
David "BAILOPAN" AndersonPavol "PM OnoTo" Marko
        Felix 
"SniperBeamer" GeyerJonny "Got His Gun" Bergstrom
        Lukasz 
"SidLuke" WlasinskiChristian "Basic-Master" Hammacher
        Borja 
"faluco" FerrerScott "DS" Ehlert
Compiled
Jul 12 2021 05:21:26
Built from
https://github.com/alliedmodders/amxmodx/commit/5e7e1775
Build ID5281:5e7e1775
Core mode
JIT+ASM32 
I think you didn't update the modules file, When you compile the sma file it check native of client disconnected but doesn't check the valves, so compiler program will compile it anyway, without check if "client disconnected" has message feature or not.
Try to reinstall AMX MODX and be sure you have installed the v1.9
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
666
Senior Member
Join Date: Mar 2015
Old 08-17-2021 , 12:40   Re: Client disconnected
Reply With Quote #12

Quote:
Originally Posted by Supremache View Post
I think you didn't update the modules file, When you compile the sma file it check native of client disconnected but doesn't check the valves, so compiler program will compile it anyway, without check if "client disconnected" has message feature or not.
Try to reinstall AMX MODX and be sure you have installed the v1.9
Hello guys, install all default both hlds and amxmdox and metamod, do not modify anything just copy the plugin, I added this line to see through the server console
PHP Code:
server_print("* %s has left the game ^4(%s)"Namemessage); 
, compiled it and copied it into plugins, then I opened the server, tested it and not The message appeared I opened and closed the server several times and once it showed me the message after closing it again and opening it, it did not show me anymore.

Guys later I realized that the message showed it after restarting my server or change map, but it should not be like that, It should also show it in the map with which the server starts

What could be happening:

amxx plugins:
PHP Code:
Currently loaded plugins:
       
name                    version     author            file             status
 
[  1Admin Base              1.9.0.5283  AMXX Dev Team     admin.amxx       running
 
[  2Admin Commands          1.9.0.5283  AMXX Dev Team     admincmd.amxx    running
 
[  3Admin Help              1.9.0.5283  AMXX Dev Team     adminhelp.amxx   running
 
[  4Slots Reservation       1.9.0.5283  AMXX Dev Team     adminslots.amxx  running
 
[  5Multi-Lingual System    1.9.0.5283  AMXX Dev Team     multilingual.am  running
 
[  6Menus Front-End         1.9.0.5283  AMXX Dev Team     menufront.amxx   running
 
[  7Commands Menu           1.9.0.5283  AMXX Dev Team     cmdmenu.amxx     running
 
[  8Players Menu            1.9.0.5283  AMXX Dev Team     plmenu.amxx      running
 
[  9Maps Menu               1.9.0.5283  AMXX Dev Team     mapsmenu.amxx    running
 
10Plugin Menu             1.9.0.5283  AMXX Dev Team     pluginmenu.amxx  running
 
11Admin Chat              1.9.0.5283  AMXX Dev Team     adminchat.amxx   running
 
12Anti Flood              1.9.0.5283  AMXX Dev Team     antiflood.amxx   running
 
13Scrolling Message       1.9.0.5283  AMXX Dev Team     scrollmsg.amxx   running
 
14InfoMessages          1.9.0.5283  AMXX Dev Team     imessage.amxx    running
 
15Admin Votes             1.9.0.5283  AMXX Dev Team     adminvote.amxx   running
 
16NextMap                 1.9.0.5283  AMXX Dev Team     nextmap.amxx     running
 
17Nextmap Chooser         1.9.0.5283  AMXX Dev Team     mapchooser.amxx  running
 
18TimeLeft                1.9.0.5283  AMXX Dev Team     timeleft.amxx    running
 
19Pause Plugins           1.9.0.5283  AMXX Dev Team     pausecfg.amxx    running
 
20Stats Configuration     1.9.0.5283  AMXX Dev Team     statscfg.amxx    running
 
21StatsX                  1.9.0.5283  AMXX Dev Team     statsx.amxx      running
 
22Disconnect             1.0         amx               disconnect.amxx           running
22 plugins
22 running 
amxx version:
PHP Code:
AMX Mod X 1.9.0.5283 (http://www.amxmodx.org)
Authors:
        
David "BAILOPAN" AndersonPavol "PM OnoTo" Marko
        Felix 
"SniperBeamer" GeyerJonny "Got His Gun" Bergstrom
        Lukasz 
"SidLuke" WlasinskiChristian "Basic-Master" Hammacher
        Borja 
"faluco" FerrerScott "DS" Ehlert
Compiled
Aug 16 2021 21:22:49
Built from
https://github.com/alliedmodders/amxmodx/commit/3340884e
Build ID5283:3340884e
Core mode
JIT+ASM32 
meta list:
PHP Code:
Currently loaded plugins:
      
description      stat pend  file              vers      src   load  unlod
 
1AMX Mod X        RUN   -    amxmodx_mm.dll    v1.9.0.5  ini   Start ANY
 
2Ham Sandwich     RUN   -    hamsandwich_amxx  v1.9.0.5  pl1   ANY   ANY
 
3CSX              RUN   -    csx_amxx.dll      v1.9.0.5  pl1   ANY   ANY
3 plugins
3 running 
__________________
666 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 08-17-2021 , 17:48   Re: Client disconnected
Reply With Quote #13

Try to testing this and come back with the results....


PHP Code:
#include <amxmodx>
#include <fakemeta>

public plugin_init()
{
   
register_forward(FM_ClientDisconnect"fw_client_disconnect");
}

public 
fw_client_disconnect(id)
{
   new 
szName[32]; get_user_name(idszName31);
   
server_print("[ Client ] #%d %s has disconnect!"), idszName;

__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 08-17-2021 at 17:48.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
666
Senior Member
Join Date: Mar 2015
Old 08-18-2021 , 11:31   Re: Client disconnected
Reply With Quote #14

Quote:
Originally Posted by Natsheh View Post
Try to testing this and come back with the results....


PHP Code:
#include <amxmodx>
#include <fakemeta>

public plugin_init()
{
   
register_forward(FM_ClientDisconnect"fw_client_disconnect");
}

public 
fw_client_disconnect(id)
{
   new 
szName[32]; get_user_name(idszName31);
   
server_print("[ Client ] #%d %s has disconnect!"), idszName;

If it works when starting the server, it shows the message without having to restart or change the map.

I have changed the code and remove the drop and it shows the message without restarting the server or changing the map but it shows this message; but when changing the map or restarting it shows it

code:
PHP Code:
public client_disconnected(idbool:dropmessage[], maxlen)
{
    new 
Name[MAX_NAME_LENGTH];
    
get_user_name(idNamecharsmax(Name));
    
    
client_print_color(0print_team_grey"%s has left the game (%s)"Namemessage);
    
    
server_print("* %s has left the game (%s) (#%d) *"Namemessageid);

message:
PHP Code:
client_print 666 has left the game(< 
PHP Code:
server_print = * 666 has left the game(<Dropped 666 from server 
__________________
666 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 16:54.


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