Jump to content

IIYAMA

Moderators
  • Posts

    6,097
  • Joined

  • Last visited

  • Days Won

    218

Everything posted by IIYAMA

  1. ok thank you,
  2. Sample: local myPlayers = {} addEventHandler ( "onPlayerQuit", getRootElement(), function () for i, player in ipairs(myPlayers) do if player == source then table.remove (myPlayers,i) return end end end) addEventHandler ( "onPlayerJoin", getRootElement(), function () table.insert (myPlayers,source) end) setTimer (function () for i, player in ipairs(myPlayers) do end,300,1) -- or ------------------------------------------- setTimer (function () for i, player in ipairs(getElementsByType ("player")) do end end,300,1)
  3. Well updating the table isn't the problem, I am talking about looping through a table that is active every 0.3 seconds. (only when the timer should be active) When I use getElementsByType("player") it will update the whole table again and after executing the data will be gone. But when I update this table with onPlayerJoin and onPlayerQuit. I don't have to reload the whole table, but it will remain in to the memory.
  4. IIYAMA

    Hud_Messages

    It should work, unless the player don't get send. Or the hudmessages isn't running.
  5. What is a faster way to use? (I need to check a lot all the players.) getElementsByType("player") --or -- a table that already contains all players? local myPlayers = {} for I, player in ipairs () do end
  6. IIYAMA

    Sound general

    ah, pity it is very hard for me to find the right volume for my music..... You have any experience with music volume?
  7. IIYAMA

    Sound general

    How to get the general sound settings from mta?
  8. IIYAMA

    dx image

    ye, it seriously helps. hmm illustrator png is 50% of photoshop png O_o. Same quality.... but better in the server.
  9. IIYAMA

    dx image

    aha, thank you back to lovely photoshop
  10. IIYAMA

    dx image

    Well my image in Illustrator was: 200 x 50 After convert to png it changed to: 194 X 51 because all the white was gone. So the image must be: eagle x eagle or double x single to get the best performance quality?
  11. IIYAMA

    dx image

    transparent is possible power of 2? Is that a standard size?
  12. IIYAMA

    dx image

    Hey I am making my own gamemode, but my images are getting ugly. I made them with illustrator to png. http://img15.imageshack.us/img15/2281/m ... 172454.png Is this normal that it looks like this?
  13. Well you can destroy it and replace it when you need it.
  14. Error: [string "theWeapon = createWeapon("minigun", 0, 0, 0..."]:1: attempt to call global 'createWeapon' (a nil value) Well then they are wrong..... >version uptodate<
  15. It is client side..... that is why your script must sync them... This can be done by: - Global client table. -- client core - ElementData -- client and server core - Serverside table with server to client triggers. -- client and server core
  16. getElementsByType( "object" ) if getElementModel(v) == 17950 then
  17. After I created my vehicle weapons, it wasn't synced. If it is, let me know. Then I have to change my scripts too.
  18. Sync between client and server. Not yet. But yes, you can make them synced by scripting it.
  19. IIYAMA

    Move camera

    aha, It works very well, I made what I wanted to make. I send you my script maybe it inspires you. (just the cam)
  20. IIYAMA

    Move camera

    btw: What is the best and lagg free way to check when the camera reached it's point?
  21. IIYAMA

    Move camera

    woow thanks I was thinking about: local distance = BeginX - endX local distance_per_frame = distance /framecount x = BeginX + distance_per_frame But interpolateBetween is much better :3
  22. IIYAMA

    Move camera

    What is the best way to move the camera from one point to another? (I am talking about math) Of course I have to put it on client Render. setCameraMatrix (117.5101852417, 163.30557250977, 5579.2065429688, 116.48139190674, 156.49519348145, 5579.0087890625) local posX, posY,posZ = 120.94383239746,162.29713439941,5579.5678710938-- location2 addEventHandler("onClientRender",root, function () local xU, yU, zU, xUt, yUt, zUt = getCameraMatrix() setCameraMatrix (xU, yU, zU, 116.48139190674, 156.49519348145, 5579.0087890625) end)
  23. Everybody who leaves the main land. It is at gta level...
  24. Oh ik heb wel een ddos gehad op mijn router en die providers doen niks. De politie kan niks doen, nutteloze mongolen. Ze kunnen je ip vinden als je hun server joined. Er zijn genoeg anderen mogelijkheden om ip's te vinden. Het enige wat je kan doen is je provider bellen en vragen of ze jou ip willen veranderen. Maar tegen die tijd heb je er al 20 aanvallen achter de rug. Btw mag ik jou ook toevoegen op skype? Ik vind het soms wel is interessant om met scripters te discussiëren.
  25. You should check it out.
×
×
  • Create New...