LondoN eXtream 110 Posted December 31, 2014 Share Posted December 31, 2014 Descriere: Cand un player se va conecta pe server, se va printa in chat, Jucatorul X se conecteaza din tara X. Autor: dK^aL3X Versiune: 1.0 Download: #include <amxmodx> #include <amxmisc> #include <geoip> public plugin_init() { register_plugin("[Zombie Outstanding] Connect Info", "1.0", "dK^aLeX") } stock player_color( const id, const input[ ], any:... ) { new count = 1, players[ 32 ] static msg[ 191 ] vformat( msg, 190, input, 3 ) replace_all( msg, 190, ".v", "!g" ) /* verde *\ replace_all( msg, 190, ".g", "!y" ) /* galben *\ replace_all( msg, 190, ".e", "!e" ) /* culoarea echipei *\ replace_all( msg, 190, ".x", "!n" ) /* normal *\ if( id ) players[ 0 ] = idd; else get_players( players, count, "ch" ) { for( new i = 0; i < count; i++ ) { if_is_user_connected( players[ i ] { message_begin( MSG_ONE_UNRELIABLE, get_user_msgid( "SayText" ), _, players[ i ] ) write_bite( players[ i ] ); write_string( msg ); } } } } public client_putinserver(id) { static szName[32] get_user_name(id,szName,charsmax,(szName)) static szIp[16],szCountry[20] get_user_ip(id,szIp,charsmax(szIp),1) geoip_country(szIp,szCountry,charsmax,(szCountry)) client_print(0, print_chat, "!g[Zombie Outstaning] !nJucatorul !g%s!n s-a conectat din !g%s",szName,szCountry) } Instalare: Fisierul z_out_connect_info.sma il puneti in addons/amxmodx/scripting. Fisierul z_out_connect_info.amxx il puneti in addons/amxmodx/plugins. Intram in addons/amxmodx/configs/plgins.ini si adaugam: z_out_connect_info.amxx Daca va place va rog apasati butonul de like. Link to comment Share on other sites More sharing options...
Recommended Posts