Raised This Month: $45 Target: $400
 11% 

Req ~ Settag plugin ( say /settag <tagname )


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tom .
Junior Member
Join Date: May 2016
Old 04-11-2017 , 00: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
[email protected]
Junior Member
Join Date: Mar 2017
Location: India
Old 04-11-2017 , 04: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 .
Junior Member
Join Date: May 2016
Old 04-11-2017 , 09: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 .
Junior Member
Join Date: May 2016
Old 04-13-2017 , 03: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 02:36.


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