Jump to content

Cadu12

Retired Staff
  • Posts

    827
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Cadu12

  1. or https://wiki.multitheftauto.com/wiki/SetMarkerColor
  2. Cadu12

    question

    You're welcome here.
  3. Cadu12

    question

    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/
  4. You know this forum are not request.
  5. Cadu12

    question

    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
  6. You dont have post bump. More than 24 or 48 horus then post bump
  7. Agree with JR10. Im not giving to anyone source/code. "i dont have time" Then don't play MTA at all.²
  8. You are using scripts for RACE not Basemode, CREATE YOUR OWN SCRIPTS FOR BASEMODE. I did created my own.
  9. Are you still learning english in your school ?
  10. @Solidsnake14 Missed "SuperModerator" again?
  11. 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
  12. Cadu12

    [Help] in GUI

    "command.ban" -> "command.kick"
  13. 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
  14. 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)
  15. MsToSeconds( 50 ) return 50000 setTimer for i dont have function name, then i can use "function" name
  16. or function MsToSeconds( MS ) local seconds = tonumber ( MS ) * 1000 return seconds end setTimer( function, MsToSeconds( 50 ), 1 )
  17. Then what are you using gamemode?
  18. Teams={{"Demonic God's Team", "%|DGT%|", "#0000ff"}, {"THQ", "%|THQ%|", "#ee00ff"}} Official topic: viewtopic.php?f=108&t=35477
  19. type in console: "refresh", "refreshall" or restart mtaserver.exe
  20. Updated, copy my code again. Added team color for blips.
  21. No, next version, i will add. I dont have time becuase of school
  22. ? 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
×
×
  • Create New...