Xredirect simplu

Discutii despre tot ce nu se incadreaza in celelalte categorii.

Moderators: Moderatori ajutatori, Moderatori

User avatar
NisQ
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 4070
Joined: 26 May 2011, 01:52
Detinator Steam: Da
CS Status: 4k hours and still countin'
Detinator server CS: GG.FRAGWAY.COM
SteamID: nisq4vibe
Reputatie: Utilizator neserios (tepar)
Location: LONDON U.K
Has thanked: 29 times
Been thanked: 75 times
Contact:

22 Jul 2013, 16:41

Workin' on my sheet - https://dreambabes.co.uk/
RoyalServer 2
soo
Membru, skill 0
Membru, skill 0
Posts: 34
Joined: 14 Oct 2016, 01:49
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Contact:

10 Feb 2017, 20:30

alchem wrote:
| Afiseaza codul
/* 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(get_user_flags(id) & ADMIN_RESERVATION)
		{
			return 1;
		}
		
		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 0;
}
Nu o sa redirectioneze pe cei care au slot.
Nu o sa mearga pentru cei cu steam din cauza update-ului.
L.E daca vrei fara cvar dai un PM sau lasi aici un reply.

Da eroare la compilare, incearca. Cautam un simple redirect cu imunitate la admini, pentru steam comanda e cea cu wait;wait;wait etc...
User avatar
^Head$hot^
Membru, skill +4
Membru, skill +4
Posts: 1541
Joined: 20 Feb 2013, 19:05
Detinator Steam: Da
Reputatie: Fost Membru Club eXtreamCS (doua luni)
Has thanked: 12 times
Been thanked: 14 times

11 Feb 2017, 23:00

Omg..topic din 2013 şi tu acum îl dezgropi?:))
Un moderator să îl mute în altă categorie...nu cred că aici e locul lui
User avatar
faggoat
Membru eXtream
Membru eXtream
Posts: 2278
Joined: 10 May 2013, 11:50
Detinator Steam: Nu
SteamID: noonstake
Reputatie: Nume anterior: stefanbri
Fost membru Club eXtreamCS ( 2 luni, Castigator eXtreamMEME )
Has thanked: 37 times
Been thanked: 29 times

11 Feb 2017, 23:50

voi nu dormiti noaptea?
Image
"e inundatie in cartier si tu dormi mancamiai pl de roman"
Post Reply

Return to “Discutii generale”

  • Information