RSSy MYGO.pl Opublikowano Sierpień 14, 2021 o 21:10 RSSy Udostępnij Opublikowano Sierpień 14, 2021 o 21:10 I'm trying to message all players when a player disconnects from the server and the reason, but it doesn't show me any messages when a player disconnects. ¿I am doing something wrong or there is an error with amx? PHP Code: /* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "amx" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) // Add your code here... } public client_disconnected(id, bool:drop, message[], maxlen) { if ( drop ) { new Name[MAX_NAME_LENGTH]; get_user_name(id, Name, charsmax(Name)); client_print_color(0, print_team_grey, "^4%s ^3has left the game ^4(%s)", Name, message); } } Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi