Raised This Month: $ Target: $400
 0% 

[ES] Problema con plugin xredirect


  
 
 
Thread Tools Display Modes
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 11-09-2010 , 21:17   Re: [ES] Problema con plugin xredirect
#11

Pregunta en el mismo thread del que creo el plugin y listo.
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
CrI
Member
Join Date: Apr 2010
Old 11-09-2010 , 23:40   Re: [ES] Problema con plugin xredirect
#12

Bueno, eso voy a hacer, gracias
PD: Go traductor google =P

Está bloqueado el post del xredirect
UHHH, ENCIMA EL CHABON PUSO PARA NO RECIBIR MENSAJES PRIVADOS, NO SE QUE HACER :s

Last edited by CrI; 11-10-2010 at 00:04.
CrI is offline
Send a message via MSN to CrI Send a message via Skype™ to CrI
emilianol
Senior Member
Join Date: Jul 2010
Old 11-10-2010 , 18:09   Re: [ES] Problema con plugin xredirect
#13

PHP Code:
#include <amxmodx>

new g_MsgSayText;

new const 
g_szServers[][] =
{
    
"1# Xredirect \r[Pub / Mix]"//Nombres de los sv
    
"2# Xredirect \r[Jail Break]" 
}

new const 
g_szIPS[][] =
{
    
"10.0.0.0:27015"// Modificalo a tu gusto
    
"10.0.0.0:27015"" // Modificalo a tu gusto
}

public plugin_init()
{
    register_event("
HLTV", "EventStartRound", "a", "1=0", "2=0")
    
    register_clcmd("
say /servers", "HookCmdMenu");
    
    g_MsgSayText = get_user_msgid("
SayText")
    
    EventStartRound()
}

public EventStartRound()
{
    ChatColor( 0, "
!g[Server Informa] !yEscribe !g/servers !ypara rediccionarte a otros servers!" )
}

public HookCmdMenu(id)
{
    new Menu = menu_create( "
\rMenu de Servers \wHigh Gamers", "BasicMenuHandler" );
    
    new szNum[ 3 ], i

    for ( i = 0 ; i < sizeof g_szServers ; i++ )
    {
        num_to_str( i , szNum , charsmax( szNum ) );
        menu_additem( Menu , g_szServers[i], szNum , 0 );
    }
    
    menu_setprop( Menu, MPROP_EXITNAME, "
Salir" );
    menu_setprop( Menu, MPROP_EXIT, MEXIT_ALL );
    
    menu_display(id, Menu, 0);
}

public BasicMenuHandler(id, Menu, iItem)
{
    if( iItem == MENU_EXIT )
        return PLUGIN_HANDLED;
    
    new szKey[ 3 ] , Dummy;
    menu_item_getinfo( Menu , iItem , Dummy , szKey , 2 , "" , 0 , Dummy );

    static Name[32], Key;
    get_user_name(id, Name, 31);
    
    Key = str_to_num( szKey )
    
    client_cmd(id,"
connect %s",g_szIPS[Key] )
    
    ChatColor(0, "
!g[Server Informa]!y El Player !team%!ya sido redireccionado al server %s",Name, g_szServers[Key])
    
    return PLUGIN_HANDLED;
}

stock ChatColor(const id, const input[], any:...) 

    new count = 1, players[32] 
    static msg[191] 
    vformat(msg, 190, input, 3) 
    
    replace_all(msg, 190, "
!g", "^4") // Green Color 
    replace_all(msg, 190, "
!y", "^1") // Default Color 
    replace_all(msg, 190, "
!team", "^3") // Team Color 
    replace_all(msg, 190, "
!team2", "^0") // Team2 Color 
    
    if (id) players[0] = id; else get_players(players, count, "
ch") 
    { 
        for (new i = 0; i < count; i++) 
        { 
            if (is_user_connected(players[i])) 
            { 
                message_begin(MSG_ONE_UNRELIABLE, g_MsgSayText, _, players[i]) 
                write_byte(players[i]); 
                write_string(msg); 
                message_end(); 
            } 
        } 
    } 
}  
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang3082\\ f0\\ fs16 \n\\ par }*/ 
Usa este, lo uso yo ^^
__________________
'EmilianO*
emilianol is offline
CrI
Member
Join Date: Apr 2010
Old 11-10-2010 , 23:57   Re: [ES] Problema con plugin xredirect
#14

Gracias loco, pero le pongo los 5 sv donde me dijiste, las 5 ips y cuando lo compilo m e tira estos 3 erorres.

HTML Code:
C:\Documents and Settings\Administrador\Mis documentos\pawn\temp995.sma(9) : error 001: expected token: "}", but found "-string-"
C:\Documents and Settings\Administrador\Mis documentos\pawn\temp995.sma(17) : error 001: expected token: "}", but found "-string-"
C:\Documents and Settings\Administrador\Mis documentos\pawn\temp995.sma(21) : error 054: unmatched closing brace
CrI is offline
Send a message via MSN to CrI Send a message via Skype™ to CrI
p4rp4d30
Veteran Member
Join Date: Mar 2007
Old 11-11-2010 , 00:54   Re: [ES] Problema con plugin xredirect
#15

Quote:
Originally Posted by CrI View Post
Gracias loco, pero le pongo los 5 sv donde me dijiste, las 5 ips y cuando lo compilo m e tira estos 3 erorres.

HTML Code:
C:\Documents and Settings\Administrador\Mis documentos\pawn\temp995.sma(9) : error 001: expected token: "}", but found "-string-"
C:\Documents and Settings\Administrador\Mis documentos\pawn\temp995.sma(17) : error 001: expected token: "}", but found "-string-"
C:\Documents and Settings\Administrador\Mis documentos\pawn\temp995.sma(21) : error 054: unmatched closing brace
"10.0.0.0:27015"" // Modificalo a tu gusto

-->
"10.0.0.0:27015" // Modificalo a tu gusto

PROBA ESTO ASI:

PHP Code:
 [ ~  PerfectSimetry  # 01 [   Hns   ]]
address=190.210.111.46
port
=29015

[ ~  PerfectSimetry  # 02 [Gungame]]
address=190.210.111.46
port
=29016

[ ~  PerfectSimetry  # 03 [Pub / mix]] 
address=190.210.111.46
port
=29017

[ ~  PerfectSimetry  # 04 [Basebuilder]] 
address=190.210.111.46
port
=29018

[ ~  PerfectSimetry  # 05 [Jail break]] 
address=190.210.111.46
port
=29019 

Last edited by p4rp4d30; 11-11-2010 at 00:56.
p4rp4d30 is offline
CrI
Member
Join Date: Apr 2010
Old 11-11-2010 , 11:42   Re: [ES] Problema con plugin xredirect
#16

En que parte pongo eso ?
CrI is offline
Send a message via MSN to CrI Send a message via Skype™ to CrI
emilianol
Senior Member
Join Date: Jul 2010
Old 11-11-2010 , 12:03   Re: [ES] Problema con plugin xredirect
#17

Quote:
Originally Posted by CrI View Post
En que parte pongo eso ?
Serverlist.ini
__________________
'EmilianO*
emilianol is offline
CrI
Member
Join Date: Apr 2010
Old 11-11-2010 , 12:13   Re: [ES] Problema con plugin xredirect
#18

aaaaaaahh, pero con el otro redirect
CrI is offline
Send a message via MSN to CrI Send a message via Skype™ to CrI
CrI
Member
Join Date: Apr 2010
Old 11-11-2010 , 12:22   Re: [ES] Problema con plugin xredirect
#19

Sigue igual :/
CrI is offline
Send a message via MSN to CrI Send a message via Skype™ to CrI
emilianol
Senior Member
Join Date: Jul 2010
Old 11-11-2010 , 12:33   Re: [ES] Problema con plugin xredirect
#20

Proba el que yo te pase si te anda fijate primero con 2 sv y decime si te anda y despues me fijo para los 5 sv
__________________
'EmilianO*
emilianol is offline
 



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 17:49.


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