Śpiąca Królewna.
Mam takie pytanie. Jak sprawdziæ czyje¶ IP na serwerze? Bo wpisujê amx_ip i nic ;/
Je¿eli nie macie tego pluginu to proszê: http://www.amxmodx.org/pl...i?file_id=10338 I to zmieñcie, aby by³o dla wszystkich graczy" /* Plugin generated by AMXX-Studio */ #include #include /*Description: This plugin enables an admin to find out a player's ip by typing in amx_ip . The ip prints in console and in the regular game.*/ public plugin_init() { register_plugin("Show IP","1.0","$uicid3"); register_concmd("amx_ip","ShowIP",0 ,"< player , @TEAM , *>"); } public ShowIP(id , level , cid) { if(!cmd_access(id , level , cid , 2)) return PLUGIN_HANDLED; new Arg[36]; new szIP[46] , szName[36]; new Players[32] , pnum; read_argv(1, Arg , 35); if(Arg[0] == '@') { switch( Arg[1] ) { case 'C' , 'c': { console_print(id , "[AMXX] IP print out for CT team"); get_players(Players , pnum , "ce" , "CT"); for(new i = 0; i < pnum; i++) { get_user_ip(Players[i] , szIP , 45 , 1); get_user_name(Players[i] , szIP , 35); console_print(id , "%d) %s - %s", (i + 1) , szName , szIP); } } case 'T' , 't': { console_print(id , "[AMXX] IP print out for T team"); get_players(Players , pnum , "ce" , "TERRORIST"); for(new i = 0; i < pnum; i++) { get_user_ip(Players[i] , szIP , 45 , 1); get_user_name(Players[i] , szIP , 35); console_print(id , "%d) %s - %s", (i + 1) , szName , szIP); } } } } else if(equal( Arg , "*")) { get_players( Players , pnum , "c"); console_print(id , "[AMXX] IP print out for all players"); for(new i=0; i < pnum; i++) { get_user_ip(Players[i],szIP , 45 , 1); get_user_name(Players[i] , szName , 35); console_print(id , "%d) %s - %s", (i + 1), szName , szIP); } } else { new Target = cmd_target(id , Arg , 10); if(!is_user_connected(Target)) return PLUGIN_HANDLED; get_user_ip( Target , szIP , 45 , 1); get_user_name( Target , szName , 35); console_print( id , "[AMXX] %s's IP address : %s", szName , szIP); } return PLUGIN_HANDLED; } |