Spyke25 Posted November 22, 2011 Posted November 22, 2011 Hey all, i would to enable the color code at the Death-messages like that : ( Cause mine is white ) So, what file i need to edit? And then i will post my code and i hope you can help me enable it
Castillo Posted November 22, 2011 Posted November 22, 2011 You can't "enable" it or "disable" it, the script doesn't has that by default, you must edit it to use DX drawing functions instead of GUI (default).
Spyke25 Posted November 22, 2011 Author Posted November 22, 2011 Ok, it contains : RankingBoard = {} RankingBoard.__index = RankingBoard RankingBoard.clientInstances = {} function RankingBoard:create() local result = { id = #RankingBoard.clientInstances + 1, items = {} } RankingBoard.clientInstances[result.id] = true clientCall(g_Root, 'RankingBoard.create', result.id) result.joinHandler = function() result:playerJoined(source) end addEventHandler('onPlayerJoin', getRootElement(), result.joinHandler) return setmetatable(result, self) end function RankingBoard:clientCall(player, fn, ...) clientCall(player, 'RankingBoard.call', self.id, fn, ...) end local savedplrcount = 1 function RankingBoard:setDirection(direction, plrcount) savedplrcount = plrcount if direction == 'up' or direction == 'down' then self.direction = direction self:clientCall(g_Root, 'setDirection', direction, plrcount ) end end function RankingBoard:add(player, time) local playerName = getPlayerName(player) if table.find(self.items, 'name', playerName) then return end table.insert(self.items, { name = playerName, time = time }) self:clientCall(g_Root, 'add', playerName, time) end function RankingBoard:playerJoined(player) clientCall(player, 'RankingBoard.create', self.id) if self.direction then self:clientCall(player, 'setDirection', self.direction, savedplrcount ) end self:clientCall(player, 'addMultiple', self.items) end function RankingBoard:clear() self:clientCall(g_Root, 'clear') self.items = {} end function RankingBoard:destroy() self:clientCall(g_Root, 'destroy') removeEventHandler('onPlayerJoin', getRootElement(), self.joinHandler) RankingBoard.clientInstances[self.id] = nil end Can you edit it for me, please?
Castillo Posted November 22, 2011 Posted November 22, 2011 That's the wrong file. And no, I'm not going to edit it for you.
Spyke25 Posted November 22, 2011 Author Posted November 22, 2011 Oh, you all right, that's just rankingboard.lua. But man, rankingboard_client.lua contains strange characters o,o
Castillo Posted November 22, 2011 Posted November 22, 2011 Strange characters? do you mean the LUA script...? I suggest you to either start learning how to script in LUA or pay someone to script it for you. https://wiki.multitheftauto.com/wiki/Scr ... troduction https://wiki.multitheftauto.com/wiki/Int ... ng_the_GUI
Spyke25 Posted November 22, 2011 Author Posted November 22, 2011 With strange characters i mean : http://oi41.tinypic.com/4zsvaw.jpg
Castillo Posted November 22, 2011 Posted November 22, 2011 That's a compiled LUA script, default race is not compiled.
Spyke25 Posted November 22, 2011 Author Posted November 22, 2011 Oh ye, you all right, the default is ok. BTW, what i need to edit then?
Cadu12 Posted November 22, 2011 Posted November 22, 2011 You have to make new deathlist and delete default deathlist. Learn LUA, if you dont do, its hard to do
Spyke25 Posted November 23, 2011 Author Posted November 23, 2011 I asked here cause i dont know lua, but if nobody can make / explain me this script, no problem, i will ask away.
Cadu12 Posted November 23, 2011 Posted November 23, 2011 I have deathlist, im not going share on you.
Castillo Posted November 23, 2011 Posted November 23, 2011 Cadu12, if you are not going to give it to him, then why the f*** do you post here? this section is to help people learning, not to say what do you have.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now