Raised This Month: $32 Target: $400
 8% 

Simple Redirection 1.0


Post New Thread Reply   
 
Thread Tools Display Modes
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 05-03-2004 , 22:27  
Reply With Quote #11

i asked EKS for some help and he did this:

Code:
/* AMXX Mod Script * * Simple Redirection Plugin for AMXX * Orginal Code by Sonic ([email protected]) * Modified and Made for AMXX by BigBaller * *  Place following cvars in server.cfg * *  amx_rd_maxplayers <x>             // - begin redirection when more the x ppl connected ( 0 = redirect all players ) *  amx_rd_server <ip>                // - redirect to this server *  amx_rd_serverport <port>          // - redirect server port *  amx_rd_serverpw <password>        // - password for the amx_rd_server (if needed) * * *  To Disable this plugin set amx_rd_maxppl to 33 or remove from plugins.ini */ #include <amxmodx> #define DontRedirectAdmins 1 public plugin_init() {     register_plugin("Simple Redirect","1.0","BigBaller")     register_cvar("amx_rd_maxplayers","0")     register_cvar("amx_rd_server","")     register_cvar("amx_rd_serverport","")     register_cvar("amx_rd_serverpw","") } public client_connect(id){ #if DontRedirectAdmins == 1     if ((get_user_flags(id)&ADMIN_RESERVATION))         return PLUGIN_HANDLED #endif     new rd_maxplayers = get_cvar_num("amx_rd_maxplayers")     new rd_serverport = get_cvar_num("amx_rd_serverport")     new rd_server[64], rd_serverpw[32]     get_cvar_string("amx_rd_server",rd_server,63)     get_cvar_string("amx_rd_serverpw",rd_serverpw,31)     if ( get_playersnum() >= rd_maxplayers) {         if ( !equal(rd_serverpw,""))             client_cmd(id,"echo ^"[AMXX] Simple Redirection - Set Password to %s^";password %s",rd_serverpw,rd_serverpw)         client_cmd(id,"echo ^"[AMXX] Simple Redirection -  Redirecting to %s:%d^";connect %s:%d",rd_server,rd_serverport,rd_server,rd_serverport)         }     return PLUGIN_CONTINUE     }

i will test it tomorrow (falling asleep), but thinking of EKS' great plugins,
i'm sure it does!

thanks BigBaller and EKS!
FeuerSturm is offline
BigBaller
Veteran Member
Join Date: Mar 2004
Location: Everett, WA
Old 05-04-2004 , 03:01  
Reply With Quote #12

If EKS was able to make it work I will add that to the base plugin give him full credit blah balh balh you know., if not then I will try and figure something out.
__________________

BigBaller is offline
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 05-04-2004 , 12:33  
Reply With Quote #13

the plugin doesn't work at all

here's my plugins.ini, maybe i placed it wrong:

Code:
; AMX Mod X plugins

admin.amx		; admin base (required for any admin-related)
admincmd.amx		; basic admin console commands
adminhelp.amx		; help command for admin console commands
menufront.amx		; front-end for admin menus
cmdmenu.amx		; command menu (speech, settings)
plmenu.amx		; players menu (kick, ban, client cmds.)
restmenu.amx		; restrict weapons menu
telemenu.amx		; teleport menu (Fun Module required!)
mapsmenu.amx		; maps menu (vote, changelevel)
antiflood.amx		; prevent clients from chat-flooding the server
adminvote.amx		; vote commands
nextmap.amx		; displays next map in mapcycle
timeleft.amx		; displays time left on map
mapchooser.amx		; allows to vote for next map
scrollmsg.amx		; displays a scrolling message
imessage.amx		; displays information messages
slots_reservation.amx
simple_redirect.amx
clan_tag_protection.amx
welcomemsg.amx		; displays motd @ client connection
pausecfg.amx		; allows to pause and unpause some plugins
admin_aimmenu.amx
admin_changename.amx
admin_ff.amx
admin_gag.amx
admin_glow.amx
adminlisten.amx
amx_ejl_adminchat.amx
swear_filter.amx
amx_xclient.amx
dod_anti_afk.amx
dod_bladez_only_by_vote.amx
dod_teams.amx
server_rules.amx
alltalk_plugin.amx
admin_godnoclip.amx
jedi_force_grab.amx
amx_ejl_cmdlistgenerator.amx
task_scheduler.amx
simpletk.amx
messgemode.amx
rulesagreement_dod.amx
it would be great if it would work, as i really need a plugin like that!
FeuerSturm is offline
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 05-04-2004 , 14:42  
Reply With Quote #14

does anyone have another redirection plugin?

help is really apreciated.
FeuerSturm is offline
onedamage
Senior Member
Join Date: Apr 2004
Location: Montreal Canada
Old 08-30-2004 , 00:14  
Reply With Quote #15

just me or this plugin does not work with steam ?
or maybe since release of .20 ?
__________________
69.12.99.130 Quebec Public CS 1.6
64.15.128.218 Quebec Public CS:SOURCE
www.QuebecPublic.com
onedamage is offline
Send a message via ICQ to onedamage Send a message via MSN to onedamage
speedy
Member
Join Date: Aug 2004
Old 09-26-2004 , 13:04  
Reply With Quote #16

Im getting an error when i set the max players to 20 that when someone connects to server it says :-

Cannot connect to server when server = 20.

Server does not redirect them or anything this is if you connect through steam.
We have a 20 man dod server.

Thanks

Speedy
speedy is offline
[WbOF]LuZiFeR
AlliedModders Donor
Join Date: Jun 2004
Old 04-24-2005 , 10:59  
Reply With Quote #17

Another Problem here.....Is it working with Steeam ? Because the Connection could'nt be established...
[WbOF]LuZiFeR is offline
Send a message via AIM to [WbOF]LuZiFeR
[WbOF]LuZiFeR
AlliedModders Donor
Join Date: Jun 2004
Old 04-24-2005 , 11:17  
Reply With Quote #18

Now it works....I've moved the cvars to the amxx.cfg....
[WbOF]LuZiFeR is offline
Send a message via AIM to [WbOF]LuZiFeR
Us3r
Junior Member
Join Date: Dec 2004
Old 06-10-2005 , 18:08  
Reply With Quote #19

Thank You BigBaller...

Your Script works like a charm...

I'm searching for one more function:
Server: 21 Slot

If player >= 20 and player not admin then
redirect to another server '--- works so far
If player >=20 and admin connects then
redirect 1 player to another server '--- slotreservation script probs?

i think that could be hard... i have the slot reservation 4 admins. Do You think this is possible?

I would rather see to redirect 1 player than kick him

Thx in advance
__________________
Us3r is offline
Devious
New Member
Join Date: Apr 2005
Old 06-19-2005 , 10:41  
Reply With Quote #20

It works, but it redirects people to the wrong server...?
Devious 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 04:27.


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