Raised This Month: $ Target: $400
 0% 

Ultimate Chat + Addons


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 06-06-2017 , 17:19   Re: Ultimate Chat + Addons
Reply With Quote #33

I tried to use the API but it didn't work
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <uc_tag>

#define PLUGIN  "Tag Name"
#define VERSION "Beta"
#define AUTHOR  "Celena Luna"

new g_szName[33][35]

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)

    
register_forward(FM_ClientUserInfoChanged"ClientUserInfoChanged")
    
    
register_clcmd("tag_name_remove""CMD_Remove_Tag")
    
register_clcmd("tag_name_add""CMD_Add_Tag")
}

public 
CMD_Remove_Tag(id)
{
    
set_user_tag(id"")
}

public 
CMD_Add_Tag(id)
{
    if(
equal(g_szName[id], "Celena Luna")) set_user_tag(id"!t[Hero of the Dawn]")

}

public 
ClientUserInfoChanged(id)
{     
    static const 
name[] = "name"
    
static szNewName[32]
    
get_user_info(idnameszNewNamecharsmax(szNewName))
        
    if(
equal(g_szName[id], "Celena Luna")) set_user_tag(id"!t[Hero of the Dawn]")

__________________
My plugin:

Last edited by Celena Luna; 06-06-2017 at 17:20.
Celena Luna 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 05:53.


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