Cerere modificare simple_redirect

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
rEpTiLa0o4
Membru, skill +2
Membru, skill +2
Posts: 819
Joined: 18 Jun 2009, 13:01
Detinator Steam: Da
CS Status: My life's riding on Autobahn !
Detinator server CS: Zombie-Land&Elz
Location: Lugoj
Has thanked: 89 times
Been thanked: 82 times
Contact:

02 Sep 2010, 15:54

As dorii daca imi puteti modifica si mie un simple redirect.Atunci cand un player se conecteaza sa verifice daca e steam on sau steam off , iar pe cei steam on sa-i trimita pe un server iar pe cei steam off pe alt server.
Credeti ca se poate?:)
Image
rEpTiLa0o4
Membru, skill +2
Membru, skill +2
Posts: 819
Joined: 18 Jun 2009, 13:01
Detinator Steam: Da
CS Status: My life's riding on Autobahn !
Detinator server CS: Zombie-Land&Elz
Location: Lugoj
Has thanked: 89 times
Been thanked: 82 times
Contact:

03 Sep 2010, 12:04

Sus !
Image
compaq
Fost moderator
Fost moderator
Posts: 2598
Joined: 01 Dec 2008, 15:32
Detinator Steam: Da
Reputatie: Fost eXtream Mod
Fost contribuitor
Fost manager
Fost Scripter eXtreamCS
Has thanked: 15 times
Been thanked: 150 times

03 Sep 2010, 12:07

Jos.
Posteaza .sma-ul.
rEpTiLa0o4
Membru, skill +2
Membru, skill +2
Posts: 819
Joined: 18 Jun 2009, 13:01
Detinator Steam: Da
CS Status: My life's riding on Autobahn !
Detinator server CS: Zombie-Land&Elz
Location: Lugoj
Has thanked: 89 times
Been thanked: 82 times
Contact:

03 Sep 2010, 12:25

simple_redirect | Afiseaza codul
#include <amxmodx>

public plugin_init() {
	register_plugin("Simple Redirect","1.0","BigBaller")
	register_cvar("amx_rd_maxplayers","30")

	register_cvar("amx_rd_server","ip")
	register_cvar("amx_rd_serverport","port")
	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] Redirectionat spre %s:%d^";Connect %s:%d",rd_server,rd_serverport,rd_server,rd_serverport)
	}
	return PLUGIN_CONTINUE
}
Image
compaq
Fost moderator
Fost moderator
Posts: 2598
Joined: 01 Dec 2008, 15:32
Detinator Steam: Da
Reputatie: Fost eXtream Mod
Fost contribuitor
Fost manager
Fost Scripter eXtreamCS
Has thanked: 15 times
Been thanked: 150 times

03 Sep 2010, 15:27

Code: Select all

#include <amxmodx>

public plugin_init() {
    register_plugin("Simple Redirect","1.0","BigBaller")
    register_cvar("amx_rd_maxplayers","30")

    register_cvar("amx_rd_servernonsteam","ip")
    register_cvar("amx_rd_serverport","port")
    register_cvar("amx_rd_serverpw","")
    register_cvar( "amx_rd_serversteam", "ip" );
}

public client_authorized(id){
    new rd_maxplayers = get_cvar_num("amx_rd_maxplayers")
    new rd_serverport = get_cvar_num("amx_rd_serverport")

    new rd_serverpw[32]
    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)
        static szAuth[ 33 ];
        get_user_authid( id, szAuth, charsmax( szAuth ) );
        if( szAuth[ 7 ] == ':' )
        {
            static szSteamServer[ 64 ];
            get_cvar_string( "amx_rd_serversteam", szSteamServer, charsmax( szSteamServer ) );

            // steam server
            client_cmd(id,"echo ^"[AMXX] Redirectionat spre %s:%d^";Connect %s:%d",szSteamServer,rd_serverport,szSteamServer,rd_serverport)
        }

        else
        {
            static szNonSteamServer[ 64 ];
            get_cvar_string( "amx_rd_serversteam", szNonSteamServer, charsmax( szNonSteamServer ) );

            client_cmd(id,"echo ^"[AMXX] Redirectionat spre %s:%d^";Connect %s:%d",szNonSteamServer,rd_serverport,szNonSteamServer,rd_serverport)
        }
    }
    return PLUGIN_CONTINUE
}
rEpTiLa0o4
Membru, skill +2
Membru, skill +2
Posts: 819
Joined: 18 Jun 2009, 13:01
Detinator Steam: Da
CS Status: My life's riding on Autobahn !
Detinator server CS: Zombie-Land&Elz
Location: Lugoj
Has thanked: 89 times
Been thanked: 82 times
Contact:

03 Sep 2010, 18:03

Compaq , e o problema.Daca intra unu cu cs dinala nebunie sau dinastea prot 47+48 ii duce pe serveru steam on , iar atunci le da reject.Daca poti sa faci doar cei cu steam on sa fie redirectionati pe serverul steam on , iar cei cu cs protocol 47&48 pe cel non-steam.
Image
rEpTiLa0o4
Membru, skill +2
Membru, skill +2
Posts: 819
Joined: 18 Jun 2009, 13:01
Detinator Steam: Da
CS Status: My life's riding on Autobahn !
Detinator server CS: Zombie-Land&Elz
Location: Lugoj
Has thanked: 89 times
Been thanked: 82 times
Contact:

04 Sep 2010, 10:25

Up :)
Image
compaq
Fost moderator
Fost moderator
Posts: 2598
Joined: 01 Dec 2008, 15:32
Detinator Steam: Da
Reputatie: Fost eXtream Mod
Fost contribuitor
Fost manager
Fost Scripter eXtreamCS
Has thanked: 15 times
Been thanked: 150 times

04 Sep 2010, 11:40

rEpTiLa0o4 wrote:Up :)
Verifica-ti PM-urile.
User avatar
NuRoFeN [;x]
Membru, skill +2
Membru, skill +2
Posts: 828
Joined: 21 Aug 2012, 14:47
Detinator Steam: Da
CS Status: Inactiv !
Detinator server CS: DR.CS1.RO
SteamID: eualexandru
Reputatie: Fost moderator
Location: Rm.Valcea
Has thanked: 66 times
Been thanked: 61 times
Contact:

18 Feb 2013, 21:19

compaq ma poti ajuta si pe mine cu acelasi plugin te rog ? :)
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 28 guests