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

[REQ] /tag /untag plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zzzzzjames
Member
Join Date: Feb 2009
Location: New Zealand
Old 04-09-2011 , 00:44   [REQ] /tag /untag plugin
Reply With Quote #1

Hey i no some 1 has made this plugin before

when a player types /tag in chat it puts a clan tag on the front of there name
e.g

before: shark
After: [eg] shark

Also a way to type /untag to take the tag off

Please some 1 make this plugin
zzzzzjames is offline
Send a message via MSN to zzzzzjames
Old 04-09-2011, 01:15
zzzzzjames
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Aykay
Senior Member
Join Date: Jul 2009
Location: Australia
Old 04-09-2011 , 03:10   Re: [REQ] /tag /untag plugin
Reply With Quote #2

If you know someone has made it before, why can't you use the search button?
__________________

Aykay is offline
Send a message via MSN to Aykay
zzzzzjames
Member
Join Date: Feb 2009
Location: New Zealand
Old 04-09-2011 , 04:35   Re: [REQ] /tag /untag plugin
Reply With Quote #3

because its not public its a private plugin
zzzzzjames is offline
Send a message via MSN to zzzzzjames
Nyuszy
Senior Member
Join Date: Apr 2009
Old 04-09-2011 , 05:33   Re: [REQ] /tag /untag plugin
Reply With Quote #4

PHP Code:
#include <amxmodx>

new bool:ptag[33]
new 
cvar_tag

public plugin_init()
{
    
register_clcmd("say /tag""add_tag")
    
register_clcmd("say /untag""remove_tag")
    
    
cvar_tag register_cvar("amx_tag""[tag]")
}

public 
client_connect(id)        // check if player has tag on connect
{
    new 
tag[32], name[65], temp[32]
    
get_pcvar_string(cvar_tagtag31)
    
get_user_name(idname64)
    
copy(tempstrlen(tag), name)
    if(
equali(temptag))
    {
        
ptag[id] = true
    
}
    else
    {
        
ptag[id] = false
    
}
}

public 
add_tag(id)
{
    if(!
ptag[id])
    {
        new 
tag[32], name[65], newname[65]
        
get_pcvar_string(cvar_tagtag31)
        
get_user_name(idname64)
        
format(newname64"%s %s"tagname)
        
set_user_info(id"name"newname)
        
ptag[id] = true
    
}
    return 
PLUGIN_HANDLED
}

public 
remove_tag(id)
{
    if(
ptag[id])
    {
        new 
tag[32], name[65]
        
get_pcvar_string(cvar_tagtag31)
        
get_user_name(idname64)
        if(
equali(name[strlen(tag)+1], " ")) // if there is a space between tag and name
        
{
            
format(tag64"%s "tag)
        }
        
replace(namestrlen(tag), tag"")
        
set_user_info(id"name"name)
        
ptag[id] = false
    
}
    return 
PLUGIN_HANDLED

try this

Last edited by Nyuszy; 04-09-2011 at 05:35.
Nyuszy is offline
zzzzzjames
Member
Join Date: Feb 2009
Location: New Zealand
Old 04-09-2011 , 22:42   Re: [REQ] /tag /untag plugin
Reply With Quote #5

thanks man works
zzzzzjames is offline
Send a message via MSN to zzzzzjames
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 04-10-2011 , 07:08   Re: [REQ] /tag /untag plugin
Reply With Quote #6

But too bad that bots can't type /tag ay james?
hornet is offline
Aykay
Senior Member
Join Date: Jul 2009
Location: Australia
Old 04-10-2011 , 07:17   Re: [REQ] /tag /untag plugin
Reply With Quote #7

Quote:
Originally Posted by hornet View Post
But too bad that bots can't type /tag ay james?
Oh my god. ROFL.
__________________

Aykay is offline
Send a message via MSN to Aykay
zzzzzjames
Member
Join Date: Feb 2009
Location: New Zealand
Old 04-10-2011 , 22:43   Re: [REQ] /tag /untag plugin
Reply With Quote #8

? your point is?
these are not my servers ...
im just helping out a mate ... noob
zzzzzjames is offline
Send a message via MSN to zzzzzjames
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 05:55.


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