Jump to content

Recommended Posts

1. Nume plugin: IP Info (amx_showip)
2. Autor & Versiune: HadeS
3. Comenzi: amx_showip
4. Cvar: -
5. Alte detalii: Cu acest plugin puteti vedea IP-urile jucatorilor online de pe server.
6. Link download: SMA

/* <!--- Include-uri ---!> */

#include <amxmodx>
#include <amxmisc>

/* <!--- Define-uri ---!> */

#define PLUGIN "IpInfo"
#define VERSION "1.0"
#define AUTHOR "Hades"

new const TAG[][] =
{
	"ShowIP" // Aici puneti TAG-ul pentru IP - MEU
}
/* <!--- Comenzi & Register plugin ---!> */

public plugin_init() 
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_clcmd("say /ip", "new_info_ip")
	register_clcmd("amx_showip", "cmdShowIp");
}
public new_info_ip(id)
{
	new ip[33], steamid[33]
	get_user_ip(id,ip,32)
	get_user_authid(id,steamid,32)
	Color_Inc_Usp(id,"!c[!e%s!c] !vIP-ul !ctau este: !e[ !v%s!e ]!c",TAG, ip)
	Color_Inc_Usp(id,"!c[!e%s!c] !vSteamID-ul !ctau este: !e[ !v%s!e ]!c",TAG, steamid)
}

public cmdShowIp(id)
{
	if( !HasUserAccess( id ) )
	{
		return 1;
	}
	console_print(id,"****************************************************");
	console_print(id,"************* Nume     -     IP     -     SteamID ***********" );
   
	new players[32], num;
	get_players(players, num);
   
	for(new i = 0 ; i < num ; i++)
	{
	new name[32];
	new ipeki[32];
	new authid[32];
	get_user_name(players[i], name, 31)
	get_user_ip(players[i], ipeki, 31, 1)
	get_user_authid(players[i], authid, 31)
  
	console_print(id, "%s     -     %s     -     %s", name, ipeki, authid);
	}
	console_print(id, "****************************************************");
	   
	return 1;
}
stock Color_Inc_Usp(const id, const input[], any:...)
{

	new count = 1, players[32]
	static msg[320], msg2[320]
	vformat(msg, 190, input, 3)
	format(msg2, 190, "%s",msg)
	replace_all(msg2, 190, "!v", "^4")
	replace_all(msg2, 190, "!c", "^1")
	replace_all(msg2, 190, "!e", "^3")
	replace_all(msg2, 190, "!e2", "^0")
	if (id)
		players[0] = id
	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_byte(players[i])
			write_string(msg2)
			message_end()
		}
	}
}

stock bool:HasUserAccess( id )
{
	if( get_user_flags( id ) & ADMIN_BAN )
		return true;
		
	return false;
}

7. Poze: -

Sursa: fairside
 


Link-uri utile, nu ezita sa le folosesti! 😁
Counter-Strike 1.6 (AMXX) Support - click aici

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...