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

Alternative Redirect Menu (Updated 03/10/2013) v0.0.8


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   General Purpose       
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 05-16-2013 , 14:29   Alternative Redirect Menu (Updated 03/10/2013) v0.0.8
Reply With Quote #1

Alternative Redirect Menu

Quote:
Originally Posted by aredirect.sma
This plugin is one alternative of plugin XRedirect that stoped work after 2013 updates made by Valve on Games: CS 1.6 and CS:CZ
COMMANDS
/server(s) - Servers Menu
/serversips - Displays All servers IPs On Console

CVARS
ar_method
Code:
0- Disables the command /server(s)
1- Kick and say for connect to the Server IP
2- Print Chat saying for connect to the Server IP
3- Print Console And Print Chat saying Server IP was printed in Console


ar_servers_ips_enabled

Code:
0- Disables the command /serversips
1- Enables the command /serversips
ar_show_players (at moment it seems that sockets having some problem so dont turn it "1" for now)
Code:
0- Doesnt shows connected/max players in menu
1- Shows connected/max players in menu
ar_allow_pub_cmds
Code:
0- Disables the chat message informing the commands of this plugin
1- Enables the chat message informing the commands of this plugin
ar_time_to_reprint
Code:
Put the amount that you want to re-print the chat message informing the commands. This value is a float, so always put values like: 120.0 | 90.0 | 60.0 etc
How to install?
Download Amxx File -> Plugins folder
Download Txt File -> Data/Lang folder
Download & Config servers.cfg -> Configs Folder
Open The File "plugins.ini" and add aredirect.amxx

How to config the servers.cfg?

Simple:
"Server IP" "Name Of Server"


Example:
Code:
"123.456.789.000:27015" "Furien"
"123.456.789.111:27015" "BaseBuilder"
Credits
- pokemonmaster (KickPlayer Stock)
- Clauu (get_data Stock - for check current and max players from anothers servers)
- Tirant (Logs - From BaseBuilder Plugin)
- ML Credits

LOGS
v0.0.1 - First Version
v0.0.2 - Added cvar for change alternative method
v0.0.3 - Optimized kick method
v0.0.4 - Added Players check
v0.0.5 - Optimize, Re-code, Optmize, Add logs, Optimize and Upload Here
v0.0.6 - Added ML Support and Publicty about cmds
v0.0.7 & v0.0.8 - Added somethings and removed include

Images
Attached Files
File Type: cfg servers.cfg (60 Bytes, 1719 views)
File Type: sma Get Plugin or Get Source (aredirect.sma - 3234 views - 6.1 KB)
File Type: txt aredirect.txt (3.4 KB, 1428 views)
__________________

Last edited by Jhob94; 12-24-2013 at 12:45. Reason: Update ML File
Jhob94 is offline
alicx
BANNED
Join Date: Mar 2013
Location: Tunisia
Old 05-16-2013 , 15:48   Re: Alternative Redirect Menu
Reply With Quote #2

seems good
good job man it's a great idea
alicx is offline
Send a message via MSN to alicx Send a message via Skype™ to alicx
oxygen935
Veteran Member
Join Date: Jun 2012
Location: Athens, Greece
Old 05-16-2013 , 16:21   Re: Alternative Redirect Menu
Reply With Quote #3

I will definitely use this... As xredirect don't work anymore all we have to do is to create our own... To kick player with message is a good idea!! Nice job
__________________
Quote:
Originally Posted by quark View Post
You're a genius
Stopped any pawn work cause of university for computer science
oxygen935 is offline
Send a message via Skype™ to oxygen935
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 05-16-2013 , 16:23   Re: Alternative Redirect Menu
Reply With Quote #4

Quote:
Originally Posted by alicx View Post
seems good
good job man it's a great idea
Ty
I would ask if someone have some others ideas, please tell me for i make.
Like i will add option (controlled via cvar) what method want. If want kick or print_chat the IP.
So if you had some idea for another method, i really appreciate
__________________
Jhob94 is offline
piepie
Member
Join Date: May 2013
Location: Pieland *.*
Old 05-16-2013 , 17:13   Re: Alternative Redirect Menu
Reply With Quote #5

Dont print in chat it takes some time to appear in console, print in console directly, and in chat print that the ip has been printed in console x)
__________________

piepie is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Location: Siiiiiiiiuu
Old 05-16-2013 , 17:33   Re: Alternative Redirect Menu
Reply With Quote #6

Quote:
Originally Posted by piepie View Post
Dont print in chat it takes some time to appear in console, print in console directly, and in chat print that the ip has been printed in console x)
Iam sure you read that before ^^
Because my first alternative redirect plugin was exactly that and i said that somewhere in forum
But that was totaly hardcoded plugin...
__________________
Jhob94 is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-16-2013 , 17:57   Re: Alternative Redirect Menu
Reply With Quote #7

Code:
public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         register_clcmd("say /servers", "Music_Menu")     register_clcmd("say_team /servers", "Music_Menu") } public Music_Menu(id) {

when using code from your other plugins please remember to change the function names
__________________
Blizzard_87 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-16-2013 , 18:24   Re: Alternative Redirect Menu
Reply With Quote #8

Quote:
Originally Posted by Blizzard_87
when using code from your other plugins please remember to change the function names
Why? He can name the functions to be whatever he wants
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-16-2013 , 18:36   Re: Alternative Redirect Menu
Reply With Quote #9

Quote:
Originally Posted by YamiKaitou View Post
Why? He can name the functions to be whatever he wants
sorry i was meaning... it might be confusing for some people considering its a server redirect menu. and the function name is Music_Menu. i personally dont have a problem with it.. just might confuse some people thats all... no big deal... sorry for my opinion.

that aside.. its a nice idea
__________________

Last edited by Blizzard_87; 05-16-2013 at 18:37.
Blizzard_87 is offline
piepie
Member
Join Date: May 2013
Location: Pieland *.*
Old 05-16-2013 , 19:08   Re: Alternative Redirect Menu
Reply With Quote #10

Quote:
Originally Posted by Jhob94 View Post
Iam sure you read that before ^^
Because my first alternative redirect plugin was exactly that and i said that somewhere in forum
But that was totaly hardcoded plugin...
I didn't! xD We are twins.
__________________

piepie 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 15:19.


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