Jump to content

karlis

Members
  • Posts

    1,314
  • Joined

  • Last visited

Everything posted by karlis

  1. .dff affects handling too for example, compare 3 hotrings, all same handling file, different steering totally(hotring-oversteer,hotring a-understeer,hotringb-lil oversteer)
  2. does getElementData returns numbers/strings?
  3. you don't need to use getScreenFromWorldPosition( x, y, z+0.5 ) for line of sight, just do processLineOfSight(cx,cy,cz,x,y,z+0.5)
  4. plus please define those 2 variables.
  5. nice, did play this race on other server too
  6. addEventHandler ( "onClientResourceStart", getResourceRootElement(getResourceFromName("scoreboard")), function() exports.scoreboard:scoreboardAddColumn ( "Gesellschaftsstatus" ) exports.scoreboard:scoreboardAddColumn ( "Spielzeit" ) setElementData ( getLocalPlayer ( ), "Gesellschaftsstatus", "Bauer" ) setElementData( getLocalPlayer ( ), "Spielzeit", ""..PlayedH..":"..PlayedM ) end ) function refreshZeit() local Zeit = ""..PlayedH..":"..PlayedM setElementData( getLocalPlayer(), "Spielzeit", Zeit ) end setTimer( refreshZeit, 60000, 0 ) also, is PlayedH and PlayedM defined?
  7. karlis

    Circular Radar

    sry for doublepost, but some time has passed, and you would not see edit. i made a function that generates ring out of rectangles, it might be useful for your purpose. function generateRectanglesInRing(radius,accuracy) local n=2 local rT={} rT[1] = {} local smallRadius=radius-accuracy local xOff=smallRadius local yOff=(radius^2-xOff^2)^0.5 rT[1][1],rT[1][2],rT[1][3],rT[1][4]=math.ceil(-xOff),math.ceil(-yOff),math.ceil(xOff*2),math.ceil(yOff*2) while true do rT[n]={} rT[n+1]={} xOff=(smallRadius^2-yOff^2)^0.5 yOff=(radius^2-xOff^2)^0.5 rT[n][1],rT[n][2],rT[n][3],rT[n][4]=-xOff,-yOff,xOff*2,yOff-math.abs(rT[n-1][2]) rT[n+1][1],rT[n+1][2],rT[n+1][3],rT[n+1][4]=-xOff,math.abs(rT[n-1][2]),rT[n][3],rT[n][4] if yOff>=smallRadius then rT[n][2],rT[n][4]=-smallRadius,smallRadius-math.abs(rT[n-1][2]) rT[n+1][4]=rT[n][4] break end n=n+2 end for n=2,#rT do for k=1,4 do rT[n][k]=math.ceil(rT[n][k]) end if rT[n-1][1]==rT[n][1] and rT[n-1][2]==rT[n][2] then table.remove(rT,n) end end return rT end radius=how big the ring need to be accuracy=how big offset in radius can there be, use 0.01(maybe higher works too, didn't test) for perfect ring, and bigger for smaller amount of rectangles. it returns following table table={ {posX1,posY1,sizeX1,sizeY1}, {posX2,posY2,sizeX2,sizeY2}, {posX3,posY3,sizeX3,sizeY3}, ... } where the center of ring is x=0, y=0 NOTE: a bit of lag spike when function is called with big accuracy(like 0.05 or smaller) see, not that complicated , and tested, it works EDIT: made it more accurate
  8. karlis

    New hud

    but still, you modified them..
  9. that means local colorcode=nick:match("^#%x%x%x%x%x%x") doesn't work, dunno why tough. try local colorcode=string.match(nick,"^#%x%x%x%x%x%x"), but don't think it'll fix. error outputs?
  10. put chatbox output at the setting color line, and check is it triggered
  11. karlis

    New hud

    can i use these icons? i might need them in resource i'll (possibly) make you will be credited ofc.
  12. ok, then try this client: ... local r,g,b=getPlayerNametagColor(player) local newnick=string.gsub(getPlayerName(player),"#%x%x%x%x%x%x","") dxDrawText (newnick, sx, sy - offset, sx, sy - offset, tocolor(r,g,b,textalpha), textscale*NAMETAG_TEXTSIZE, "default", "center", "bottom", false, false, false ) ... server: function process() players=getElementsByType("player") for _,v in pairs(players) do processPlayer(v) end end function processPlayer(p) local Player=source or p local nick=getPlayerName(Player) local colorcode=nick:match("^#%x%x%x%x%x%x") if colorcode then local red,green,blue=getColorFromString(colorcode) setPlayerNametagColor(Player,red,green,blue) end end addEventHandler("onResouceStart",getResourceRootElement(),process) addEventHandler("onPlayerJoin",getRootElement(),processPlayer) addEventHandler("onPlayerChangeNick",getRootElement(),processPlayer)
  13. karlis

    Circular Radar

    just do all the radar areas, then loop tru a table with them...
  14. karlis

    Circular Radar

    we sorted that he need radar areas, not radar.
  15. karlis

    Circular Radar

    thats called moderating
  16. karlis

    Hydra Stunts

    kind of too easy to make vid out of it
  17. karlis

    Circular Radar

    oh darn then i got it wrong. itll be very hard, cuz you will need to draw it with countless rectangular radar areas
  18. well, still some kind of IDs could be implemented to change radio progress
  19. the code should remove the colorcode out of your nick, it does not?
  20. karlis

    Circular Radar

    i still think he means hud radar, not like gang area
  21. maybe i messed up some of string editing? *requests assistance from someone with with big string editing experience EDIT;wait, do you add the colorcode to your nick each time you restart the script?
  22. karlis

    Hydra Movie

    nice work, i personally could recreate them all(not 1st try ofc), but still you have alot of skill! talking about the kings, this beats all the prev vids:
  23. karlis

    Hydra Race

    well, your skill is fifty times bigger then average one, but still im gonna admit its kinda easy. i could record a vid, but too bad pc. want play with me on some server?
  24. no errors in both client and server?
×
×
  • Create New...