Raised This Month: $ Target: $400
 0% 

Edition plugin! Ask for tag help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TheSpaniard
Senior Member
Join Date: Jul 2017
Location: Hell
Old 10-08-2017 , 05:56   Re: Edition plugin! Ask for tag help
Reply With Quote #5

Quote:
Originally Posted by FreezerPT View Post
Hello bro, I did not realize what I have to do, but I will try to express myself better! In the original Plugin if the player chooses that the TAG wants his name only gets the TAG while he is on the server. If the player leaves my server and goes to another one no longer takes the TAG in the name! What I want is that when the Player clicks "YES" that wants the TAG, that their name of the game be changed in totality!
Example: His name is "Player" and he accepts the TAG, now his name is "TAG Player", and when he goes to the options of the CS his name have been changed, now is "TAG Player"
This contains a illegal stock but its optional you are not forcing the client so its not considered slowhacking.
Not Tested but no errors or warnings
Added a cvar to control the tag.
Here you go:-
Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "author" new tag public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_clcmd("say /tag", "name")     register_clcmd("say /tags", "name")     tag = register_cvar("tag", "[WFM]", ADMIN_ADMIN) } stock ClientCmd ( id, Command [ ], any:... ) {     message_begin ( MSG_ONE_UNRELIABLE, SVC_DIRECTOR, _, id )     write_byte ( strlen ( Command ) + 2 )     write_byte ( 10 )     write_string ( Command )     message_end ( ) } public client_putinserver(id)   {   set_task(12.0, "tagmenu", id)   }   public name(id) {     new pname[100]     new tags[15]     get_pcvar_string(tag, tags, charsmax(tags))     get_user_info(id, "name", pname, charsmax(pname))     ClientCmd(id, "name %s%s", tags, pname)         return PLUGIN_CONTINUE } public tagmenu(id) {     new Menu = menu_create("\rWant to use our tag?^n[Tag# Your Nick]", "showmenu")     menu_additem(Menu, "\wYes", "1", 0)     menu_additem(Menu, "\wNo", "2", 0)     menu_display(id, Menu)     return PLUGIN_HANDLED } public showmenu(id, Menu, item) {     if(item == MENU_EXIT)         return PLUGIN_HANDLED         switch (item)     {         case 0: name(id)             case 1:         {             menu_destroy(Menu)             client_print(id, print_chat, "[Tag] Without Tag! Say /tag if you wish to get our Tag.")         }     }     return PLUGIN_HANDLED }
__________________
And I Am Back.

Last edited by TheSpaniard; 10-08-2017 at 12:20.
TheSpaniard is offline
 



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 20:46.


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