Swat Posted January 12, 2017 Share Posted January 12, 2017 (edited) Problema 1 al mutear, banear, kickear, etc solo se le puede poner 1 solo color por que si le agregas el "#ffffff" aparesera en el sanción, como podria poner mas de 1 color? dare unos ejemplo haber si se entiende un poco EJ default = Pepito has been muted by Carlitos EJ ERROR = #4f58b9[SERVER] #FFFFFFPepito has been muted by Carlitos (al sancionar a alguien quiero que aparescan esos colores) Problema 2 Es casi lo mismo que el Problema 1, pero esto es como el "mapmanager" quiero que al iniciar un gamemode, mapa etc aparesca mas de 1 colores tambien EJ default = Gamemode 'play' Started. EJ ERROR = #FFFFFFGamemode #4f58b9'play' #FFFFFFStarted. si me pudieran ayudar con este problema estaria muy agradecido Edited January 12, 2017 by Swat Link to comment
#Dv^ Posted January 12, 2017 Share Posted January 12, 2017 (edited) Busca los outputChatBox, quizás te saldría así outputChatBox("Pepito has been muted by Carlitos", root, 255, 0, 0) Y sólo añade un 'true' para que detecte los códigos HEX outputChatBox("#000000Pepito #FFFFFFhas been muted by Carlitos", root, 255, 0, 0 ,true) Edited January 12, 2017 by #Dv^ 1 Link to comment
Swat Posted January 12, 2017 Author Share Posted January 12, 2017 27 minutes ago, #Dv^ said: Busca los outputChatBox, quizás te saldría así outputChatBox("Pepito has been muted by Carlitos", root, 255, 0, 0) Y sólo añade un 'true' para que detecte los códigos HEX outputChatBox("#000000Pepito #FFFFFFhas been muted by Carlitos", root, 255, 0, 0 ,true) en que carpeta esta ese archivo? pense que era el conf/ Messages.xml Link to comment
#Dv^ Posted January 12, 2017 Share Posted January 12, 2017 Busca el archivo 'admin_server.lua' y en la línea 508 reemplaza la función 'aAction' por esta: function aAction ( type, action, admin, player, data, more ) if ( aLogMessages[type] ) then function aStripString ( string ) string = tostring ( string ) string = string.gsub ( string, "$admin", getPlayerName ( admin ) ) string = string.gsub ( string, "$by_admin_4all", isAnonAdmin4All( admin ) and "" or " by " .. getPlayerName ( admin ) ) string = string.gsub ( string, "$by_admin_4plr", isAnonAdmin4Victim( admin ) and "" or " by " .. getPlayerName ( admin ) ) string = string.gsub ( string, "$data2", more or "" ) if ( player ) then string = string.gsub ( string, "$player", getPlayerName ( player ) ) end return tostring ( string.gsub ( string, "$data", data or "" ) ) end local node = aLogMessages[type][action] if ( node ) then local r, g, b = node["r"], node["g"], node["b"] if ( node["all"] ) then outputChatBox ( aStripString ( node["all"] ), _root, r, g, b , true) end if ( node["admin"] ) and ( admin ~= player ) then outputChatBox ( aStripString ( node["admin"] ), admin, r, g, b, true) end if ( node["player"] ) then outputChatBox ( aStripString ( node["player"] ), player, r, g, b, true) end if ( node["log"] ) then outputServerLog ( aStripString ( node["log"] ) ) end end end end 1 Link to comment
Swat Posted January 12, 2017 Author Share Posted January 12, 2017 46 minutes ago, #Dv^ said: Gracias man por ayudarme te pasaste Link to comment
Recommended Posts