Jump to content

Recconectar a Todos


CeKiT

Recommended Posts

Posted

Hola!

Que función debería usar junto con

AddCommandHandler 

para que cuando yo ponga /reconnectall reconecte a todos los jugadores.?

Saludos epsero que me ayuden

Posted

Me parece que no hay funcion para reconectarlos a todos, pero lo que podria servir es un

redirectPlayer 

Los dedireccionas a tu mismo servidor.

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

Posted

Si no me equivoco es

function rejoinMe(thePlayer, theCommand) 
    redirectPlayer(thePlayer) -- This only works in 1.1.1-9.03429 and onwards 
end 
addCommandHandler("rejoin", rejoinMe) -- Attach rejoin command to our function 

Pero esto reconecta a todos?

Posted

intenta esto

serversrec={} 
tagdata={} 
function ReCheckToRedirect(player) 
     redirectPlayer ( player, serverIP, serverPort ) -- agrega la ip y el puerto de tu server en el espacio respectivo señalado 
  
function ServerISOLDandRedirect() 
     ReCheckToRedirect(source) 
end 
addCommandHandler("reconectartodos",ServerISOLDandRedirect)  -- el comando es reconectartodos 
  
for theKey,player in ipairs(getElementsByType ( "player" )) do 
    ReCheckToRedirect(player) 
end 

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

Posted

Yakuza.Real: No necesitas hacer eso, si no pones la IP y el puerto los auto reconecta.

function reconnectAll ( thePlayer ) 
    for index, player in ipairs ( getElementsByType ( "player" ) ) do 
        redirectPlayer ( player ) 
    end 
end 
addCommandHandler ( "reconnectall", reconnectAll ) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

no sabia eso. pero bueno, cada dia se aprende algo nuevo ;)

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

Posted

No hay de que ;).

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...