Raised This Month: $ Target: $400
 0% 

Autobind


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kamild1996
Senior Member
Join Date: May 2011
Old 10-01-2011 , 18:21   Autobind
Reply With Quote #1

Hi.
I want to add an auto-bind - when somebody joins the server, /menu is automatically binded to V key.
Quote:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Menu serwera"
#define VERSION "1.0"
#define AUTHOR "Redux"

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /menu","mymenu");
}
public mymenu(id)
{
new MyMenu=menu_create("\wMenu serwera [\rDeathrun\w]","cbMyMenu");

menu_additem(MyMenu,"Zmien serwer");//item=0
menu_additem(MyMenu,"Sklep DR");//item=1
menu_additem(MyMenu,"Wylacz widocznosc CT");//item=2
menu_additem(MyMenu,"Punkty");//item=3
menu_additem(MyMenu,"Menu Admina");//item=4
menu_additem(MyMenu,"Wylacz/wlacz RS");//item=5

menu_setprop(MyMenu,MPROP_EXITNAME,"Wyjscie") ;
menu_setprop(MyMenu,MPROP_EXIT,MEXIT_ALL);
menu_setprop(MyMenu,MPROP_NUMBER_COLOR,"\y");


menu_display(id, MyMenu,0);
return PLUGIN_HANDLED;
}
public cbMyMenu(id, menu, item)
{
switch(item)
{
case 0:
{
client_cmd(id, "say /serwer");

}
case 1:
{
client_cmd(id, "say /drshop");

}
case 2:
{
client_cmd(id, "say /invis");

}
case 3:
{
client_cmd(id, "say /mypoints");

}
case 4:
{
client_cmd(id, "amxmodmenu");

}
case 5:
{
client_cmd(id, "say /roundsound");

}

}
menu_destroy(menu);
return PLUGIN_HANDLED;
}
Can you help me to add this to this plugin?
kamild1996 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-01-2011 , 18:33   Re: Autobind
Reply With Quote #2

That's called slowhacking and that's not allowed.
__________________

Last edited by Exolent[jNr]; 06-20-2012 at 12:31.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 10-01-2011 , 18:34   Re: Autobind
Reply With Quote #3

Quote:
Originally Posted by Napoleon_be View Post
That's called slowhacking and that's not allowed.
You're not allowed to assist people in slowhacking.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please

Last edited by Exolent[jNr]; 06-20-2012 at 12:31.
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
kamild1996
Senior Member
Join Date: May 2011
Old 10-01-2011 , 18:39   Re: Autobind
Reply With Quote #4

Slowhacking? What is it?
kamild1996 is offline
kamild1996
Senior Member
Join Date: May 2011
Old 10-01-2011 , 19:05   Re: Autobind
Reply With Quote #5

I added this:
Quote:
snip
And it's working. Thanks for help, Napoleon_be!

Last edited by Exolent[jNr]; 06-20-2012 at 12:32.
kamild1996 is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 10-01-2011 , 20:17   Re: Autobind
Reply With Quote #6

Quote:
Originally Posted by kamild1996 View Post
I added this:

And it's working. Thanks for help, Napoleon_be!
No problem, normally it's not allowed, but it's your server and you do what you want.
__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-01-2011 , 22:28   Re: Autobind
Reply With Quote #7

Quote:
Originally Posted by Napoleon_be View Post
No problem, normally it's not allowed, but it's your server and you do what you want.
You need to respect the rules of the forum.
__________________
fysiks is offline
kamild1996
Senior Member
Join Date: May 2011
Old 10-02-2011 , 04:40   Re: Autobind
Reply With Quote #8

Can anyone explain me, what is slowhacking and why help with autobinds are unallowed? I can't get it...
kamild1996 is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 10-02-2011 , 05:19   Re: Autobind
Reply With Quote #9

Slowhacking is changing a client's settings (cvars, binds, ...) without his permission.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-02-2011 , 13:44   Re: Autobind
Reply With Quote #10

Quote:
Originally Posted by drekes View Post
Slowhacking is changing a client's settings (cvars, binds, ...) without his permission.
That's what I think it should be because of the ease of removing "permission" code.
__________________
fysiks is offline
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 19:33.


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