Jump to content

karlis

Members
  • Posts

    1,314
  • Joined

  • Last visited

Everything posted by karlis

  1. you should watch wiki useful functions page before asking here https://wiki.multitheftauto.com/wiki/Useful_Functions
  2. sory, if you prefer something i get that you use that you preferred
  3. use onPlayerLogin or not isGuestAccount() for checking isnt that a guest account
  4. https://forum.multitheftauto.com/viewtop ... es#p305140 so gamesnerts example is totally invalid
  5. anyway i got this bug once, and restarting pc helped
  6. lol k, i know that i can specify them in meta, i was asking is it possible to send them while resource running, only on request, and for 1 player only and i know there is also some io.write function in lua, so i asked this well you ansvered, so ok thanks edit: dak, yes i saw this, but this is clearly for scripts only
  7. hi, i was wondering, is it possible to stream a file(not script, but image, sound etc), while script itself is running here is lame example, but its purpose is only to show the idea(yes i know theres no filewrite() clientside) --SERVER file=fileOpen("myimage.png") while not fileIsEOF(file) do triggerClientEvent(getRootElement(),"onsendfile",getRootElement(),fileread("myimage.png",500)) end --CLIENT file=fileCreate("myimgrecived.png") addEvent("onsendfile",true) addEventHandler("onsendfile",getRootElement(),function(buffer) fileWrite(file,buffer) end)
  8. karlis

    PlayerToPoint

    use function playerToPoint(radius,player,x,y,z) local px,py,pz=getElementPosition(player) return getDistanceBetweenPoints3D(x,y,z,px,py,pz) <= radius end , but read the notes i posted before might you did not understand, but x <=y returns true if y is not smaller then x, false othervise. so return x<= y will return given case. same applys in that function this is long version witch does same(dont use it, just an example for you to understand): function playerToPoint(radius,player,x,y,z) local playerx,playery,playerz = getElementPosition(player) local distance = getDistanceBetweenPoints3D(x,y,z,playerx,playery,playerz) if distance <= radius then return true else return false end end
  9. comon, compile and keep them in you server, or uncompile and post here noone need such configurable-needed anticheat system compiled
  10. please pay attention on what i said btw i could make custom ranks, but can i force players to finish/win when need to?
  11. taalasma, he means that sobeit weapon spawns are still unsynced, so no need for it! and OPEN-SOURCE ARE NEVER COMPILED, whats the point of duing so
  12. karlis

    Car respawn.

    sory for doublepost, i did it since you are online,and you could not see edit you can use https://wiki.multitheftauto.com/wiki/RespawnVehicle
  13. karlis

    Car respawn.

    ffs use [lua][/lua]
  14. im not sure, is this supported in maps to just make water xml node? https://wiki.multitheftauto.com/wiki/Element/Water also, you can make water in angle, but it resulted game crash for me
  15. karlis

    PlayerToPoint

    thanks gamesnert. heres few notes: 1) it is recommended to use player as first argument, it will improve compability then. 2)this detects is player in sphere of given radius, not in cube 3)if you want events when you enter the point use colshapes better
  16. so all of u use https://wiki.multitheftauto.com/wiki/DxDrawImageSection since 1.0.4 as it will really fast d/l up
  17. karlis

    PlayerToPoint

    duno wuts wrong, but use [ lua][ /lua] and return true/false, not 0/1, as it will help in some explists edit: i think you can use it: function playerToPoint(radius,player,x,y,z) px,py,pz=getElementPosition(player) return getDistanceBetweenPoints3D(x,y,z,px,py,pz)<radius end
  18. karlis

    need help

    talasma are u arguing me?then you got it wrong, i said it to cookie
  19. just check race resource(might take some time to find wut u need in it), i bet theres solution
  20. this is not bot, but much worse(check scripting section): https://forum.multitheftauto.com/memberl ... le&u=45644
  21. 50p wuts problem in such configuration of script?theoretically it should return all fine, thats some bug for lua?
×
×
  • Create New...