AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   This would be the greatest plugin ever.. (https://forums.alliedmods.net/showthread.php?t=68500)

Checkmarks 03-17-2008 16:33

This would be the greatest plugin ever..
 
Well, I'm planning on starting up a CS1.6 community with some people, and we need some cool plugins for our server/s that will soon be up.

So my idea is this:
----------------------------------------------------------------

I want to be able to type amx_recruit_<user>, and the <user> whose name I type there will have an [R] before their name, meaning they're a recruit.
It should automatically give it to them when I type the command in my console.
I also want to be able to type amx_member_<user>, and the same happens except instead of the [R], it gives a clan tag. You can make it just say "TAGHERE:" or something behind their name for now, and I'll change the code to what tag I want - when we agree on one for our clan :)

Thanks - this plugin would rock.

chris 03-17-2008 17:05

Re: This would be the greatest plugin ever..
 
Already made, you can use a tryout system plugin and clan tag plugin.

dekken 03-17-2008 17:42

Re: This would be the greatest plugin ever..
 
i might give this a try if none will do this b4 me...ill edit soon >_<
dont rely on me :X

Checkmarks 03-17-2008 19:59

Re: This would be the greatest plugin ever..
 
ty dekken
and chris - ill search that and hopefully its close to what i want
ty

dekken 03-17-2008 21:30

Re: This would be the greatest plugin ever..
 
kk ive done it...
after 30Minutes Hustling the forum search and hustling my self -_-
i made it...


2Cvars...
Code:

"Recruit_Tag" "[R]"
"Member_Tag" "[MyClanTAG]"

Change them as you wish.


PHP Code:

#include <amxmodx>
#include <amxmisc>


new name2[32], tag[32], tag2[32], target[32], player
new TagRecruit
new TagMember

public plugin_init()
{
    
register_plugin("Just Tag IT""0.1""Dekken")
    
    
TagRecruit register_cvar("Recruit_Tag""[R]")
    
TagMember register_cvar("Member_Tag""[MyClanTAG]")
    
    
register_concmd("amx_recruit""Recruit_TRUE"ADMIN_KICK"<target>")
    
register_concmd("amx_member""Member_TRUE"ADMIN_KICK"<target>")
}

public 
Recruit_TRUE(idlevelcid)
{
    
read_argv(1target31)
    
player cmd_target(idtarget10)
    
    
get_user_name(playername231)
    
get_pcvar_string(TagRecruittag31)
    
    if (
player == 0)
    { 
        return 
PLUGIN_HANDLED
    
}
    
    else
    {
        
client_cmd(player"name ^"%s%s^""tagname2)
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_HANDLED
}



public 
Member_TRUE(idlevelcid)
{
    
read_argv(1target31)
    
player cmd_target(idtarget10)
    
    
get_user_name(playername231)
    
get_pcvar_string(TagMembertag231)
    
    if (
player == 0)
    { 
        return 
PLUGIN_HANDLED
    
}
    
    else
    {
        
client_cmd(player"name ^"%s%s^""tag2name2)
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_HANDLED


Leave any comments or bugs you find, and ill try to fix them as much as i can.
well, that was fun :up:

and if you Wish to make the Tags behind the name, or before..
Change this:
PHP Code:

//Recruit Tag
client_cmd(player"name ^"%s%s^""tag2name2)
//Member Tag
client_cmd(player"name ^"%s%s^""tagname2

To This:
PHP Code:

//Recruit Tag
client_cmd(player"name ^"%s%s^"",  name2tag2)
//Member Tag
client_cmd(player"name ^"%s%s^""name2tag


Exolent[jNr] 03-18-2008 00:37

Re: This would be the greatest plugin ever..
 
and what if the player just changes his name to not include the tag, or what about then the player comes back later in the day and he doesnt have it, or what about if someone acts like u chose them by wearing the tag?

dekken 03-18-2008 01:45

Re: This would be the greatest plugin ever..
 
well i did exactly what he asked -_-

Exolent[jNr] 03-18-2008 01:48

Re: This would be the greatest plugin ever..
 
:roll:

dekken 03-18-2008 02:19

Re: This would be the greatest plugin ever..
 
Quote:

Originally Posted by X-olent (Post 598247)
and what if the player just changes his name to not include the tag

why would someone do this?
if he would do this, then he probably doesnt wanna be Recruited...


Quote:

Originally Posted by X-olent (Post 598247)
or what about then the player comes back later in the day and he doesnt have it

why would it save his tag For Days?
every time his coming he will put it on his own??


Quote:

Originally Posted by X-olent (Post 598247)
or what about if someone acts like u chose them by wearing the tag?

Ban Him? :D
i dont know how to do this:nono:

Maybe set Bool=True on the Player with the Tag...
and then Loop thru all Players and check if any of them Have The Tag, if anyone have and Bool is not True....
Rename theyre name back to what it was?
IONO

Checkmarks 03-18-2008 15:35

Re: This would be the greatest plugin ever..
 
well that clan "Ownage |" has a mod where every time somebody joins their server their name is changed to have their clan tag, even when they join a different server. I pretty much want this but only to people that I give it to, not whoever joins the server


All times are GMT -4. The time now is 05:19.

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