-
Posts
827 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Cadu12
-
or https://wiki.multitheftauto.com/wiki/SetMarkerColor
-
local _getPlayerName = getPlayerName addEventHandler("onClientRender",root, function() --if getElementData(me,"isLogged") then -- You can add this, i was testing and fixing it. local screenx, screeny = guiGetScreenSize() local line = 0 for i , v in ipairs(getElementsByType('player')) do dxDrawRectangle( ((screenx/2-(600/2))/1024)*screenx, ((screeny/2-(line * 20 + 100))/768)*screeny, (600/1024)*screenx, (line * 20 + 80/768)*screeny ,tocolor(0,0,0,200),false) dxDrawText("Name", ((screenx/2-(600/2-10))/1024)*screenx, ((screeny/2-(line * 20 + 90))/768)*screeny, ((screenx/2-(600-10/2))/1024)*screenx, ((screeny/2-(line * 20 + 90))/768)*screeny,tocolor(255,255,255,255), (screenx/800)*1.2,"arial","left","top",false,false,false) dxDrawText("ID", ((screenx/2-(600/2-300))/1024)*screenx, ((screeny/2-(line * 20 + 90))/768)*screeny, ((screenx/2-(600/2-300))/1024)*screenx, ((screeny/2-(line * 20 + 90))/768)*screeny,tocolor(255,255,255,255), (screenx/800)*1.2,"arial","left","top",false,false,false) dxDrawText("Ping", ((screenx/2-(600/2-550))/1024)*screenx, ((screeny/2-(line * 20 + 90))/768)*screeny, ((screenx/2-(600/2-550))/1024)*screenx, ((screeny/2-(line * 20 + 90))/768)*screeny,tocolor(255,255,255,255), (screenx/800)*1.2,"arial","left","top",false,false,false) dxDrawText("(" .. i .. ")" .. getPlayerName(v) , ((screenx/2-(600/2-10))/1024)*screenx, ((screeny/2-(line * 20 + 60))/768)*screeny, ((screenx/2-(600/2-10))/1024)*screenx, ((screeny/2-(line * 20 + 55))/768)*screeny,tocolor(255,255,255,200), (screenx/800)*1.2,"arial","left","top",false,false,false) dxDrawText( tonumber(getElementData(v,"ID")) or 0, ((screenx/2-(600/2-300))/1024)*screenx, ((screeny/2-(line * 20 + 60))/768)*screeny, ((screenx/2-(600/2-300))/1024)*screenx, ((screeny/2-(line * 20 + 55))/768)*screeny,tocolor(255,255,255,200), (screenx/800)*1.2,"arial","left","top",false,false,false) dxDrawText( getPlayerPing (v), ((screenx/2-(600/2-550))/1024)*screenx, ((screeny/2-(line * 20 + 60))/768)*screeny, ((screenx/2-(600/2-550))/1024)*screenx, ((screeny/2-(line * 20 + 55))/768)*screeny,tocolor(255,255,255,200), (screenx/800)*1.2,"arial","left","top",false,false,false) line = line + 1 end --end end ) function removeColorCoding ( name ) -- Credis to Race return type(name)=='string' and string.gsub ( name, '#%x%x%x%x%x%x', '' ) or name end function getPlayerName ( player ) -- Credis to Race return removeColorCoding ( _getPlayerName ( player ) ) end Edit: Maybe this is better or not, i was fixing... too slow D: Edit2: http://imageshack.us/photo/my-images/21/helpingw.png/
-
You know this forum are not request.
-
https://wiki.multitheftauto.com/wiki/DxDrawText viewtopic.php?f=91&t=30227&hilit=dxdrawtext+color&start=15#p329917 <-- for colored https://wiki.multitheftauto.com/wiki/DxDrawRectangle https://wiki.multitheftauto.com/wiki/DxGetTextWidth https://wiki.multitheftauto.com/wiki/GuiGetScreenSize Events: https://wiki.multitheftauto.com/wiki/OnClientClick https://wiki.multitheftauto.com/wiki/OnClientPlayerQuit https://wiki.multitheftauto.com/wiki/OnClientPlayerJoin https://wiki.multitheftauto.com/wiki/OnC ... ChangeNick https://wiki.multitheftauto.com/wiki/OnC ... ourceStart https://wiki.multitheftauto.com/wiki/OnClientRender
-
You dont have post bump. More than 24 or 48 horus then post bump
-
Agree with JR10. Im not giving to anyone source/code. "i dont have time" Then don't play MTA at all.²
-
You are using scripts for RACE not Basemode, CREATE YOUR OWN SCRIPTS FOR BASEMODE. I did created my own.
-
Are you still learning english in your school ?
-
@Solidsnake14 Missed "SuperModerator" again?
-
LOL, you are not mod, YOU ARE ADMIN they it will error or idk. edit: Did you edited in acl.xml? if yes then upload old
-
"command.ban" -> "command.kick"
-
addEventHandler ( "onPlayerChat" , root , function ( message , type ) if type == 0 then if isObjectInACLGroup ( "user." .. getAccountName(getPlayerAccount(source)), aclGetGroup ( "Moderator" ) ) then cancelEvent ( ) local r, g, b = getPlayerNametagColor(source) outputChatBox ( "#00FF00[Moderator]-#ffffff" .. getPlayerName ( source ) .. ": " .. message, getRootElement(), r, g, b, true ) end end end) @Solidsnake14 Missed "if type == 0 then" it means we can speak in team
-
Dude, add this line: function onChangeRaceState(newStateName) if newStateName == "Running" then for _,player in ipairs(getElementsByType("player")) do checkPlayerTeam(player) end end end addEvent("onRaceStateChanging", true) addEventHandler( "onRaceStateChanging", getRootElement(), onChangeRaceState)
-
Oh yea, I didnt saw u.u
-
MsToSeconds( 50 ) return 50000 setTimer for i dont have function name, then i can use "function" name
-
or function MsToSeconds( MS ) local seconds = tonumber ( MS ) * 1000 return seconds end setTimer( function, MsToSeconds( 50 ), 1 )
-
Then what are you using gamemode?
-
Teams={{"Demonic God's Team", "%|DGT%|", "#0000ff"}, {"THQ", "%|THQ%|", "#ee00ff"}} Official topic: viewtopic.php?f=108&t=35477
-
type in console: "refresh", "refreshall" or restart mtaserver.exe
-
Updated, copy my code again. Added team color for blips.
-
No, next version, i will add. I dont have time becuase of school
-
SDK D: You pwned me in Lua
-
? I dont got what you mean, sorry. Im not good englishs skills if StringMoreThanMore("Testtesttest", 0) then: return true if StringMoreThanMore("Test tes ttes t2", 0) then: return false