Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
Care ma ajuta sa modific um plugins
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Resources
Author
Message
945
caspi
[Mentally Stable]
Status: Offline
(since 12-04-2009 20:04)
Joined: 06 Dec 2007
Posts: 11
,
Topics: 4
Location:
Romania
Reputation:
99.5
Votes
: 4
Posted: 05-02-2009, 20:14:28
| Translate post to:
... (
Click for more languages
)
sal asi dori sa modificati care va pricepeti pluginsul se numeste simple_redirect
si asi dori sa ami faceti la el sa nu mai redirectioneze si admini numai jucatori si daca puteti sa faceti sa bag si mai multe servere pentru redirect multumesc
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>
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){
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
0
0
Back to top
Topic locked
Topic is closed, you cannot post any messages in it anymore
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Resources
The time now is 18-01-2025, 21:20:44
Copyright info
Based on phpBB
ro
/
com
B
Login
I forgot my password
World of Warcraft
Login for more...
Download WoW 7.3.5
Misc
eSports
Achievements
Buy reputation with votes
Reputation trades
Forum rules
Ban list
Members list
User guide (FAQ)
World of Warcraft
View details