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

Server bind on M(Team Join)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
Hartmann
Senior Member
Join Date: Nov 2014
Old 03-22-2015 , 12:04   Server bind on M(Team Join)
Reply With Quote #1

Server bind on M(Team Join)


*Lasts only while the player on the server.

Description:

Simple bind on M(Team Join). It lasts only while the player on the server.

Cvars:

Your bind on M.
eg. amx_bind "autobuy"
Bind "autobuy" on M.
amx_bind "say hahahaha"

Your text Advertising for bind.
amx_textb "AdverText"

The time for that come advertisements.
amx_adverb "60"<default: "60">

Hud for you bind after the player connect.


ToDo List
Any suggetions?
Attached Files
File Type: sma Get Plugin or Get Source (hartmenu.sma - 938 views - 1.3 KB)
__________________

RETAKES v1.0
github.com/alghtryer/retakes

Contact : [email protected]

BTC Donate: 1QAh1NLmeHy81LF9r8PaeGjYqHL2BBcJTx

Hartmann is offline
Hartmann
Senior Member
Join Date: Nov 2014
Old 03-22-2015 , 12:05   Re: Server bind on M(Team Join)
Reply With Quote #2

I don't know if anybody else has writen this plugin...
__________________

RETAKES v1.0
github.com/alghtryer/retakes

Contact : [email protected]

BTC Donate: 1QAh1NLmeHy81LF9r8PaeGjYqHL2BBcJTx

Hartmann is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 03-22-2015 , 14:23   Re: Server bind on M(Team Join)
Reply With Quote #3

If my memory doesn't fails, say command is one of the blocked commands since 2013 updates. Maybe you run non-steam? Well, doesn't matters.
Just wondering if you can support the plugin. Well i know that names doesn't really matters but from here i can see you use names and you really don't know why.

PHP Code:
new AdverText[32];
new 
Bind[32];
new 
g_adverbtext,cvar_adverb,g_Bind
AdvertText and Bind are globals and strings.
g_adverbtext and g_Bind are cvars.

So, if you want a better readable code it should be:
PHP Code:
new g_szAdverText[32], g_szBind[32]; // They are strings
new g_pAdverBTextg_pAdverBg_pBind// They are cvars 
Yet, this is just names, not really a problem with the code.

About the code, should not you return PLUGIN_HANDLED at the function player(id)? Well i guess that command isn't different than others, you must return or the default command will still be called.

set_task(10.0, "BindHud", id), this seems a bit useless. Anyway if you do this, you should remove the task at client_disconnect, in case of the task exist. Or at least verify if the client is connected at BindHud or it can cause troubles if a player disconnects before the function is called.

Well, the plugin seems very small and maybe not that useful. But maybe someone finds it useful, good luck.
__________________
Jhob94 is offline
Hartmann
Senior Member
Join Date: Nov 2014
Old 03-22-2015 , 14:42   Re: Server bind on M(Team Join)
Reply With Quote #4

Quote:
Originally Posted by Jhob94 View Post
If my memory doesn't fails, say command is one of the blocked commands since 2013 updates. Maybe you run non-steam? Well, doesn't matters.
Just wondering if you can support the plugin. Well i know that names doesn't really matters but from here i can see you use names and you really don't know why.
This is not prohibited.

what names???
__________________

RETAKES v1.0
github.com/alghtryer/retakes

Contact : [email protected]

BTC Donate: 1QAh1NLmeHy81LF9r8PaeGjYqHL2BBcJTx

Hartmann is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 03-22-2015 , 14:46   Re: Server bind on M(Team Join)
Reply With Quote #5

Please
do the world a favour and stop releasing plugins here.

You CANNOT bind players key anymore since the latest updates. It is blocked for a VERY good reason.
__________________

Mordekay is offline
Hartmann
Senior Member
Join Date: Nov 2014
Old 03-22-2015 , 15:02   Re: Server bind on M(Team Join)
Reply With Quote #6

Quote:
Originally Posted by Mordekay View Post
Please
do the world a favour and stop releasing plugins here.

You CANNOT bind players key anymore since the latest updates. It is blocked for a VERY good reason.
while the player on the server has you bind on M
can not change team
This does not bind anything
__________________

RETAKES v1.0
github.com/alghtryer/retakes

Contact : [email protected]

BTC Donate: 1QAh1NLmeHy81LF9r8PaeGjYqHL2BBcJTx

Hartmann is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 03-22-2015 , 15:08   Re: Server bind on M(Team Join)
Reply With Quote #7

Ever heard of the console?
console "chooseteam"
And your "plugin" is bypassed.
If you want someone to force a team there are MUCH better ways.
And what if someone has chooseteam on another key than "m"?

Useless, as saied.
__________________


Last edited by Mordekay; 03-22-2015 at 15:09.
Mordekay is offline
Hartmann
Senior Member
Join Date: Nov 2014
Old 03-22-2015 , 15:17   Re: Server bind on M(Team Join)
Reply With Quote #8

Quote:
Originally Posted by Mordekay View Post
Ever heard of the console?
console "chooseteam"
And your "plugin" is bypassed.
If you want someone to force a team there are MUCH better ways.
And what if someone has chooseteam on another key than "m"?

Useless, as saied.
not important letter
look sma then reply, do not spam
__________________

RETAKES v1.0
github.com/alghtryer/retakes

Contact : [email protected]

BTC Donate: 1QAh1NLmeHy81LF9r8PaeGjYqHL2BBcJTx

Hartmann is offline
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 03-22-2015 , 16:47   Re: Server bind on M(Team Join)
Reply With Quote #9

Please go and get a lot more experience before releasing anymore plugins. This is far below scratch.
Unapproved.
__________________
Quote:
vBulletin Tip #42: Not much would be accomplished by merging this item with itself.
hornet is offline
Hartmann
Senior Member
Join Date: Nov 2014
Old 03-22-2015 , 16:55   Re: Server bind on M(Team Join)
Reply With Quote #10

Quote:
Originally Posted by hornet View Post
Please go and get a lot more experience before releasing anymore plugins. This is far below scratch.
Unapproved.
Reason for "This is far below scratch."
__________________

RETAKES v1.0
github.com/alghtryer/retakes

Contact : [email protected]

BTC Donate: 1QAh1NLmeHy81LF9r8PaeGjYqHL2BBcJTx

Hartmann is offline
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 06:12.


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