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

Req ~ Settag plugin ( say /settag <tagname )


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tom .
Member
Join Date: May 2016
Old 04-10-2017 , 23:28   Req ~ Settag plugin ( say /settag <tagname )
Reply With Quote #1

Hello.

I need a plugin that you can set a tag in front of the name. Tag will be set at the chat command / settag followed by the tag.

Level acces with comand: ADMIN_REZERVATION
tom . is offline
B@IL
Junior Member
Join Date: Mar 2017
Location: India
Old 04-11-2017 , 03:01   Re: Req ~ Settag plugin ( say /settag <tagname )
Reply With Quote #2

Quote:
Originally Posted by tom . View Post
Hello.

I need a plugin that you can set a tag in front of the name. Tag will be set at the chat command / settag followed by the tag.

Level acces with comand: ADMIN_REZERVATION
Code:
#include <amxmodx>

#define PLUGIN		"Amxx TagMe"
#define VERSION		"1.2"
#define AUTHOR		"[ZOF 'X]"

#define cm(%1)		(sizeof(%1)-1)

new pCvar_Tag;

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR);
	
	pCvar_Tag = register_cvar("amx_sv_tag", "[ZOF 'X] |");
	
	register_clcmd("say_team /settag", "cmdTagMe");
	register_clcmd("say /settag", "cmdTagMe");
}

public cmdTagMe(id)
{
	if(get_user_flags(id) & ADMIN_RESERVATION){
	static szName[33], szTag[16];
	
	get_user_name(id, szName, cm(szName));
	get_pcvar_string(pCvar_Tag, szTag, cm(szTag));
	
	if(containi(szName, szTag) != -1)
	{
		client_print(id, print_chat, "[AMXX] You already Have the Tag !");
		return PLUGIN_CONTINUE;
	}
	
	format(szName, cm(szName), "%s%s", szTag, szName);
	set_user_info(id, "name", szName);
	}else{
		client_print(id, print_chat, "[AMXX] You have no access to this command");
	}
	return PLUGIN_CONTINUE;
}
B@IL is offline
tom .
Member
Join Date: May 2016
Old 04-11-2017 , 08:29   Re: Req ~ Settag plugin ( say /settag <tagname )
Reply With Quote #3

Thanks, but I want each player to be able to set the desired tag.
tom . is offline
tom .
Member
Join Date: May 2016
Old 04-13-2017 , 02:26   Re: Req ~ Settag plugin ( say /settag <tagname )
Reply With Quote #4

Upppp
tom . is offline
Reply


Thread Tools
Display Modes

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 14:56.


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