Jump to content

dzek (varez)

Retired Staff
  • Posts

    4,144
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by dzek (varez)

  1. you are loading: files/song.mp3 and want to play: mariosong.mp3
  2. and what you want to count? kills? race win? i wont help you. im BORED with people who dont want to learn something, just keep begging for more and more
  3. its working if you have added it all right to meta.xml INCLUDING THE SOUND FILE https://wiki.multitheftauto.com/wiki/Meta.xml
  4. dzek (varez)

    Marker

    when playing type in console "debugscript 3" to debug your code - for the future.. function startclient () obj = createObject( 971, 5010.1752929688, -1853.2252197266, 53.170219421387 , 0 , 0 , 0) grav1 = createMarker ( 4974.033203125, -1857.8096923828, 50.550357818604 , "corona" , 8, 0, 0,204, 255) addEventHandler( "onClientMarkerHit", grav1, markerHit) end function markerHit(thePlayer,dimension) if (dimension and thePlayer==getLocalPlayer()) then moveObject (obj, 6000, 5010.1752929688,-1853.2252197266, 41.327033996582) end end addEventHandler( "onClientResourceStart", resourceRoot, startclient ) and put your code inside LUA tags, not CODE [ lua] -- code here [ /lua]
  5. dzek (varez)

    Marker

    @Doomed_Space_Marine: you can't attach MARKER event to PLAYER.. setting attached element to root element will cause event firing up on EVERY MARKER not EVERY PLAYER. And he didnt want it synced, read 1st post @Bonsai: my script should work. if not - post whole code, as you probably messed up something earlier
  6. dzek (varez)

    Marker

    grav1 = createMarker ( 4974.033203125, -1857.8096923828, 50.550357818604 , "corona" , 8, 0, 0,204, 255) function markerHit(thePlayer,dimension) if (dimension and thePlayer==getLocalPlayer()) then moveObject (obj, 6000, 5010.1752929688,-1853.2252197266, 41.327033996582) end end addEventHandler( "onClientMarkerHit", grav1, markerHit)
  7. first: remove boolean ones. it can be the reason
  8. just trigger event from server to client like: SERVER: function some_function() if (something_happen) then triggerClientEvent(getRootElement(), "playMyMusic", getRootElement()) end end CLIENT: addEvent("playMyMusic",true) addEventHandler("playMyMusic", getRootElement(), function() playSound (parameters, here) --or any other things end) EDIT: afair you can overwrite mta native functions, so write own server side playSound (in the way showed above - but when triggering client event also pass filename parameter - to play correct file on client) search wiki for examples of triggering events
  9. eeehhh... you dont have any idea about how it's working step by step, right? -- better use: ufoPositions = { { 3000, 1000, 1000, 30}, -- time, posX, posY, posZ -- notice: when time is too low, ufo movement will be just too fast, and you wont see it!! (3000 is TOO LOW BTW for more than 20 meters or something) { 3000, 500, 500, 500}, { 3000, 1000, 500, 30}, { 3000, 500, 1000, 30}, { 3000, 1000, 500, 30} -- notice there are no comma here (afair you can leave it here in lua, but im not sure) } idleTime = 1000 -- time that ufo should stop after every move (you can set it to zero, or more) -------------------- DONT TOUCH ANYTHING BELOW THIS --------------------- iterator = 1 max = #ufoPositions ufo =createObject ( 3065, 1816.2037353516, 2984.2958984375, 18.470184326172, 0.0, 0.0, 180.0) nextUfo() function nextUfo() iterator=iterator+1 if (iterator>max) then iterator = 1 end moveObject(ufo, ufoPositions[iterator][1], ufoPositions[iterator][2], ufoPositions[iterator][3], ufoPositions[iterator][4]) setTimer(nextUfo, ufoPositions[iterator][1]+idleTime, 1) end edit: NOT TESTED of course ;p
  10. probably with https://wiki.multitheftauto.com/wiki/GetPedBonePosition every second and re-setting position of your model.. you can attach elements with attachElements, but you probably cant attach it to one bone, but to whole element, so this probably will be wrong idea
  11. ignore Spider Pork's message, he said it wrong. you need new timer every move function (ufo1, ufo2, ufo3) --- like in ufo4 function
  12. and you have something or just want us to make everything for you?
  13. 1: are you sure you are not confusing MySQL with SQLite? 2: i dont understand your question.. you dont know how to create table, select data from database, or what? post your code, and tell us what more do you need
  14. dzek (varez)

    Chatbox

    looks like he cant speak, but he can understand us Namorek - if you really have to call me idiot - fine, but please write my nick as "varez" not "Varez", thanks
  15. a: you will be your own butler q: why do you like to spam?
  16. im programmer, and my experiences are saying: dont keep A LOT of not-needed-at-all data in memory.. well, its not like that.. re-reading xml on every (second? or just in "real time") will be just useless. when you are loading xml, you are loading data into something (variables), right? you can modify that data, then save again/discard/whatever.
  17. you cant replace collision of vehicles.. read wiki.
  18. dzek (varez)

    Chatbox

    @50p - yup, registered today, 2h before posting.. XX3, you got me wrong.. - he wont learn anything if he cant even speak its own language - he cant speak english too - he didnt write a line in lua Wear_Dead aka Namorek - so you want to beat me? Wanna see my blood all over me? Very intelligent as for poor little deaf person REALLY, nothing against deaf/injured people, but ... (end this by yourself)
  19. a: yes, give me the source btw:P q: heaven or hell?
  20. SQLite or MySQL. need some effort to implement, but its worth. should be fastest with lot of data
  21. dzek (varez)

    Chatbox

    he cant script anything, dont even try to help him o_O read 50p's post: https://forum.multitheftauto.com/viewtop ... 91&t=28151
  22. XX3 this one is even bigger.. it HAVE TO be splitted, otherwise it will disappear when you are still on it.
  23. dude, it depends of the way that keyboard is made.. just get your keyboard, open it and after removing rubber mate you will see two (or it was three?) foils glued together with electronic "paths" on them. like this: http://www.explainthatstuff.com/keyboard3.jpg http://www.brokenthorn.com/Resources/im ... yboard.jpg if you know some electronic, you will know why the keyboard is blocking on few key press.. when you will open better, expensive keyboard - you will see more electronic elements that this little something on picture 2
×
×
  • Create New...