Raised This Month: $ Target: $400
 0% 

[HELP] SWITCH TAG


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
extream87
Senior Member
Join Date: Aug 2011
Old 04-05-2012 , 17:11   [HELP] SWITCH TAG
Reply With Quote #1

I need if i write .tagt all terrorists gets the tag [ESL1]
Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "Tag Changer" #define VERSION "1.0" #define AUTHOR "extream87 aka v4N3k" #define ACCESS_LEVEL ADMIN_LEVEL_C public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_clcmd("say .tagt", "ChangeTagT", ACCESS_LEVEL)     register_clcmd("say_team .tagt", "ChangeTagT", ACCESS_LEVEL)     register_clcmd("say .tagct", "ChangeTagCT", ACCESS_LEVEL)     register_clcmd("say_team .tagct", "ChangeTagCT", ACCESS_LEVEL) } public ChangeTagT(id) {         if ( !access( id, ACCESS_LEVEL ))         return;         if(get_user_team(id) != 1)         return;     new pname[32]     new newname[32]     get_user_info(id, "name", pname, charsmax(pname))             RemoveOldTag(pname)       format(newname, charsmax(pname), "[ESL1] %s", pname)     set_user_info(id, "name", newname) } public ChangeTagCT(id) {         if ( !access( id, ACCESS_LEVEL ))         return;         if(get_user_team(id) != 2)         return;     new pname[32]     new newname[32]     get_user_info(id, "name", pname, charsmax(pname))             RemoveOldTag(pname)       format(newname, charsmax(newname), "[ESL2] %s", pname)     set_user_info(id, "name", newname) }   public RemoveOldTag(pname[32]) {     replace_all(pname, 31, "[ESL1]", "")     replace_all(pname, 31, "[ESL2]", "")     trim(pname) }
extream87 is offline
Ex1ne
Senior Member
Join Date: Oct 2011
Location: Norway
Old 04-05-2012 , 17:28   Re: [HELP] SWITCH TAG
Reply With Quote #2

Loop.
__________________
Ex1ne is offline
Reply



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 05:26.


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