Jump to content

re:set nick para el server


Recommended Posts

Miren quiero hacer esto.

uno cuando entra al mta pone donde dice setting y se cambia el nombre o tambien lo hacen por consola con este comando "nick (nombre),y yo quiero que en mi server cuando entren y se registren (register: usuario y password) osea si en settgin o con el comando que dije "nick FELIPE" se pusieron el nombre felipe y cuando van a registrar en usuario en ves de poner FELIPE ponen no se como felipe123 que cuando logean despues el nick que se vea es felipe123 no el de consola eso quiero

RESUMIDO: QUIERO QUE SE VEA EL NOMBRE QUE PUSISTE EN USUARIO PARA REGISTRAR Y QUE NO SE VEA EL NOMBRE QUE USASTE EN SETTING O EN CONSOLA CON "NICK (NOMBRE)" ESO SOLO ESPERO QUE ME ENTIENDAN

Link to comment
addEventHandler ( "onPlayerChat", root, 
    function ( msg, msgType ) 
        local accountName = getAccountName ( getPlayerAccount ( source ) ) 
        local r, g, b = getPlayerNametagColor ( source ) 
        if ( msgType == 0 ) then 
            outputChatBox( accountName ..": #FFFFFF".. msg, root, r, g, b, true ) 
        elseif ( msgType == 1 ) then 
            outputChatBox( "* ".. accountName .." ".. msg, root, 255, 0, 255, true ) 
        elseif ( msgType == 2 and getPlayerTeam ( source ) ) then 
            for index, player in ipairs ( getPlayersInTeam ( getPlayerTeam ( source ) ) ) do 
                outputChatBox( "(TEAM) ".. accountName ..": #FFFFFF".. msg, player, r, g, b, true ) 
            end 
        end 
        cancelEvent ( ) 
    end 
) 

Link to comment
  • Recently Browsing   0 members

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