Jump to content

karlis

Members
  • Posts

    1,314
  • Joined

  • Last visited

Everything posted by karlis

  1. but try replace "chatbox" with "chatbox: local say", see if it works and does it change tile for the writing box.
  2. i meant that, only important is that you are not in water when starting the teleport.
  3. karlis

    Clan Tags

    you just need to find other script that outputs chat too. EDIT: comment line 392-400 in fr_server.lua
  4. its not MTA, but how you write it. plus MTA has 5times better sync then samp.
  5. getElementColShape() no idea will it work, but try this.
  6. meh imo colsphere is a waste.
  7. no, it is alright that it gives 30, cuz we are mirroring OBJ2 against OBJ1, not opposite. heres how getDistanceBetweenPoints3D & 2D works: distance=( (x1-x2)^2 + (y1-y2)^2 + (z1-z2)^2 ) ^ 0.5 --^0.5 works same as squareroot, and if its 2D, not 3D, remove the Z1 & Z2 part
  8. love this idea, might do after IV hud
  9. https://community.multitheftauto.com/ind ... ls&id=2289 GTAIV infernus, claimed as own
  10. karlis

    Clan Tags

    dont know, stop res one by one and check
  11. try bindKey("L","chatbox: l") doubt it will work tough(thats just the syntax binds use for default chatbox inputs).
  12. karlis

    Clan Tags

    it work twice cuz some other res is running, try stopping playerblips/playercolors res.
  13. i don't know how to open chatbox with custom textbox
  14. errors? you have to use /l text btw.
  15. karlis

    Clan Tags

    thats why you want to keep spacing, so you can read it function chatMyBox (msg, type) if type == 0 then cancelEvent() local account = getPlayerAccount(source) local r, g, b = getPlayerColor(source) local name = getPlayerName(source) local msg = msg:gsub('#%x%x%x%x%x%x', '') if isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Admin' ) ) the outputChatBox( "#FF0000[TestTag]" .. name .. ': #FFFFFF' .. msg, g_Root, r, g, b, true) elseif isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Moderator' ) ) the outputChatBox( "#FF8000[TestTag]" .. name .. ': #FFFFFF' .. msg, g_Root, r, g, b, true) elseif isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Member' ) ) then outputChatBox( "#00FF00[TestTag]" .. name .. ': #FFFFFF' .. msg, g_Root, r, g, b, true) elseif isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'V.I.P' ) ) then outputChatBox( "#0000FF[TestTag]" .. name .. ': #FFFFFF' .. msg, g_Root, r, g, b, true) elseif isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'Scripter' ) ) the outputChatBox( "#00FFFF[TestTag]" .. name .. ': #FFFFFF' .. msg, g_Root, r, g, b, true) else outputChatBox( name .. ': #FFFFFF' .. msg, g_Root, r, g, b, true) end end end EDIT:ninja'd
  16. if you spawn underwater, you don't drown.
  17. for changing colors of dx texts, for example kill tabs, you need to edit the resources but if you want to get rgb from hex, its easy local nick=getPlayerName(player) local col=nick:match("^#(%x%x%x%x%x%x)" local nick=nick:gsub("#%x%x%x%x%x%x","") local r,g,b=tonumber("0x"..string.sub(col, 1, 2)), tonumber("0x"..string.sub(col, 3, 4)), tonumber("0x"..string.sub(col, 5, 6))
  18. just setElementData(thePlayer,"Points",yourPoints,true)
  19. also it'd be cool to take note of car weight and maximum velocity from 1.1 ownwards, and we all know normal car consumes least fuel not driving at 5kph, but at ~50-100(not sure the exact amount).
  20. karlis

    Clan Tags

    move end in line 39 to line 42. also replace getPlayerColor with getPlayerNametagColor
  21. i give up on trying to get the air atm...can get it working only for +/- 2-3seconds really noone knows the algorithm how the air is calculated? also made a height meter like default radar had.
  22. facepalm. anyway, just restart the res that loads the obj after mapedit is started
  23. if you don't like linear increase in cost of fuel, you could wait until 1.1 and use getEasingValue() for some function you think that will fit
  24. yep, would be same, but i doubt that its more efficient to call a function for simple math.
×
×
  • Create New...