Jump to content

Feche1320

Members
  • Posts

    461
  • Joined

  • Last visited

Everything posted by Feche1320

  1. What does 'in ipairs' or 'in pairs' do on a loop and what other use it could have? Thanks
  2. Ah, you made me understand EVERYTHING. Thank you, a lot
  3. Lol it works, thank you Just a little question.. dxDrawText("My text", x, y, XX, YY) For what is it the XX and YY? Is it fine if I put there the sxx and syy variables?
  4. From 1024*768 and up the text draw is OK, but from 800*600 to 640*480 it isn't showing.. drawColor("#2EFE2EEG #FFFFFF24/7 RACE DD/DM", (754/1024)*sxx-50, (228/768)*syy-210, (732/1024)*sxx, (258/768)*syy, tocolor(0,0,0,255), (sxx/1024)*0.8, "bankgothic")
  5. So, I have a text, if my resolution is on 800x600 the text is where it has to be, but if I change it to another, the text will simply 'move', making it to be almost on the middle of the screen.. Thanks.
  6. Hey, I have a server, but I have a problem: Every time I add a new map I have to restart the server, is there any way to load the game in game avoiding to restart the server? Thanks.
  7. So, for functions I can use the export thing on meta.xml and then calling it, but for variables how can I do? I have a variable on resource1, and I wan't to use it on resource2 too, any ideas? Thanks
  8. Thanks, but I'm new to this and I have no idea on where to put those commands.. please help me
  9. Okay, I have a trial VPS with Fedora installed.. But I have no idea on what to do.. please help (I am on 0% lol) Thanks.
  10. Hey, how can I make a vehicle to drive on water? Thanks
  11. function isInRange(element, radius, x, y, z) local oldposx, oldposy, oldposz = getElementPosition(element) local tempposx = (oldposx-x); local tempposy = (oldposy-y); local tempposz = (oldposz-z); if(((tempposx < radius) and (tempposx > -radius)) and ((tempposy < radius) and (tempposy > -radius)) and ((tempposz < radius) and (tempposz > -radius))) then return 1 else return 0 end end You can use that, put a radious of 3 at least.
  12. Hey, I have a script, how can I compile it? Thanks
  13. The problem is that I need Z height too.
  14. Nonon, for example, I make an object at X 0, Y 0, Z 0 and I want to check if the player is near that point.
  15. Is there a function that retrieves the player range from a specific cord? Thanks
  16. How can I know when the player presses W or S(being in a car)?? Thanks
  17. I have this: function playSound3DEx(path) local x, y, z = getElementPosition(player) local soundasd = playSound3D(path, x, y, z+1) setSoundVolume(soundasd, 1.0) attachElements(soundasd, player) end But sound volume is really low, whats the problem? With playSound works loud and fine.
×
×
  • Create New...