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

ASKTAG by grd ( Version 2.3 [27/05/2012] )


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose       
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 04-11-2012 , 17:43   ASKTAG by grd ( Version 2.3 [27/05/2012] )
Reply With Quote #1

ASKTAG by grd
Version 2.3 [27/05/2012]


PHP Code:
/*
*      < Coded by grd aka  quark >
*
*  Description 
* When somoene enter in server, will pop up a menu,
* and you can choose if you want the community/organization
* tag or not. You can always say ".tag" or "/tag" and you will
* receive the tag. If you want to remove it you just need to say
* ".removetag" or "/removetag". To change tag, change default cvar value.
* If you choose to set tag, it will save it and you have the tag everytime
* you enter the server.
*
*  Contacts
* Steam: grd025
* Mail: [email protected]
* Website: www.grdwork.eu

*
*  Changelog
* 1.0 - First release.
* 1.1 - Fixed some bugs.
* 1.2 - Added some say commands.
* 1.3 - Added advertise when press No.
* 1.4 - Added more advertises.
* 1.5 - Keep only one tag when press Yes.
* 1.6 - Added command removetag and check if player is connected when set tag.
* 1.7 - Small updates
* 1.8 - Re-made Plugin.
* 1.9 - Added cvar for tag and small updates.
* 2.0 - Added ML.    
* 2.1 - Changed colorchat.
* 2.2 - Removed Exit option from menu.
* 2.3 - Changed Colorchat ( AGAIN :] ).
* 2.3 - Added nvault to sabe TAG Answer.
*
*  Original Thread
* http://forums.alliedmods.net/showthread.php?t=182607
*
*/ 
ChangeChatPrefix:
PHP Code:
new const g_ChatPrefix[ ] = "!g[ASKTAG !tby grd!g]"// Change here the chat messages prefix. 

Includes:

PHP Code:
#include < amxmisc >
#include < nvault > 
Cvars:
PHP Code:
g_Prefix register_cvar("amx_tag","TAG#"// Change here the default tag. 

You can change the tag in sma, or can set it on amxx.cfg.
Example add line: amx_tag "grd#".

Commands:
/tag - Set tag to player.
.tag - Set tag to player.
/removetag - Remove tag to player.
.removetag - Remove tag to player.

MultiLanguage:

[EN] - grd
[PT] -
grd
[TR]
- akcaliberg
[DE] - Torge
[RO] - stelistcristi
[ES] - Tallulah

Translate request here.

Contacts:

Email: [email protected]
Steam: grd025

Credits:
grd - Idea and Main code.
Diegorkable - Name code.

P.S: I am supporting this plugin, JUST CONTACT ME
P.S2: If you want old versions, CONTACT ME
Attached Files
File Type: txt asktag.txt (2.3 KB, 620 views)
File Type: sma Get Plugin or Get Source (asktag.sma - 1354 views - 10.5 KB)
__________________

Check out My Plugins:
qServerInfo ; ASKTAG

Last edited by quark; 05-27-2012 at 11:05.
quark is offline
MyPc
Senior Member
Join Date: Sep 2011
Old 04-12-2012 , 06:58   Re: ASKTAG 1.3 [UPDATE 11/04/12]
Reply With Quote #2

Useless, u should add /removetag or something else for players who agreed to get a tag, but doesnt want it anymore.
you used #include< cstrike > for no reason.
and you need to check if the player already has tag on his name.
improve the plugin.
MyPc is offline
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 04-12-2012 , 11:22   Re: ASKTAG 1.3 [UPDATE 11/04/12]
Reply With Quote #3

UPDATED:
* 1.4 - Added more advertises.
* 1.5 - Keep only one tag when press Yes.

Last edited by quark; 04-12-2012 at 14:17.
quark is offline
kapzz
Member
Join Date: Mar 2012
Location: Mars
Old 04-12-2012 , 18:00   Re: ASKTAG 1.5 [UPDATE 12/04/12]
Reply With Quote #4

Use a pcvar to change the TAG some people can't understand code for the most simple that is.
PHP Code:
g_Prefix register_cvar("amx_askfortag","TAG*")
"and then use" get_pcvar_string " instead of using the defined PREFIX" 

Last edited by kapzz; 04-13-2012 at 13:17.
kapzz is offline
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 04-12-2012 , 18:13   Re: ASKTAG 1.5 [UPDATE 12/04/12]
Reply With Quote #5

Thanks for the suggest, ill do it tomorrow
quark is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 04-12-2012 , 18:51   Re: ASKTAG 1.5 [UPDATE 12/04/12]
Reply With Quote #6

Useless
__________________
kramesa is offline
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 04-12-2012 , 18:56   Re: ASKTAG 1.5 [UPDATE 12/04/12]
Reply With Quote #7

yeah, its useless, but a lot of people already asked me for this plugin. So i release it ..
quark is offline
Exoid
Member
Join Date: Oct 2009
Location: Faro|Portugal
Old 04-13-2012 , 09:08   Re: ASKTAG 1.5 [UPDATE 12/04/12]
Reply With Quote #8

PHP Code:
public client_putinserver(id)
{
    
/* Lets give people some delay when they enter in server */
    
set_task(12.0"tagmenu"id)
}

public 
tagmenu(id)
{
    new 
Menu menu_create("\yYou want to use our tag?^n\rby grd""showmenu")
    
menu_additem(Menu"\wYes""1"0)
    
menu_additem(Menu"\wNo""2"0)
    
menu_display(idMenu)

Check if user is still connected before running the function..
Exoid is offline
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 04-14-2012 , 07:20   Re: ASKTAG 1.6 [UPDATE 14/04/12]
Reply With Quote #9

UPDATED:
* 1.6 - Added command removetag and check if player is connected when set tag.

NEW SCREENSHOTS!
__________________

Check out My Plugins:
qServerInfo ; ASKTAG
quark is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-14-2012 , 07:28   Re: ASKTAG 1.6 [UPDATE 14/04/12]
Reply With Quote #10

PHP Code:
#define PREFIX "TAG*"

    
replace_all(pname69"TAG*"""

Don't post your first plugin is like a rule on here, let's get some more knowledge before releasing a plugin thanks.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Old 04-14-2012, 07:49
quark
This message has been deleted by quark. Reason: Double post
Old 04-15-2012, 07:02
quark
This message has been deleted by quark.
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 17:13.


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