Jump to content

Rataj

Members
  • Posts

    98
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Rataj

  1. Traffic is limitation? Our imagination is only limitation! Check out CrystalMV's NPC HLC traffic.
  2. Start here: https://wiki.multitheftauto.com/wiki/Scripting_Introduction Also take a look at these functions: setTimer, getPlayerMoney, setPlayerMoney, createMarker Try how they work and figure out how to put them together and what else you'll need. GUI would maybe be too hard for you yet, so try using just commands now (addCommandHandler). Don't forget to save your property locations to table, XML, SQL or MySQL. For saving property ownership use XML, SQL, MySQL or account data. EDIT: Sorry, I didn't read it properly. If you want it to automatically sell after player's disconnect, then you don't need to save it to external file or something like that, just use tables. Also don't forget to look at these events: onPlayerQuit, onMarkerHit
  3. I just tested your server, there were no players so I invited 3 my friends and we played there for about 3 hours. I must say it's really NICE! You totally deserve more players. Keep it up.
  4. Rataj

    [HELP] Warning

    arg2 is probably not supplied, problem is somewhere in server-side. Trust us or not, but that event is called from some server-sided script (or maybe at least from another client-sided script).
  5. Yep. Also another issue - lot of players are using number keys for their own binds.
  6. In "resources\[gamemodes]\[play]\play\broph.lua" on line 19 replace this: repeat until setElementModel(player,math.random(312)) with this: setElementModel(player, 0) -- 0 is CJ skin, replace that number with any skin you want all players to have by default
  7. Do you have any errors in debugscript? Also show us your code, so we can help you fix it.
  8. There is also possibility that all your "job_" scripts are doing something heavy on startup. Try to check that.
  9. And are you sure you set element data "warp.status" properly?
  10. Great idea. Making this must took you a lot of time, you have my respect.
  11. It's impossible to freeze one bone of ped, you can only freeze whole element. GTA:SA works with baked animations, not with ragdoll physics.
  12. Set ID to 'primary' and 'auto increment' in your table, also remove manual ID adding in the INSERT function. Btw.. I added you on skype, accept it
  13. Oh, sorry then, write me a PM with your skype name and I'll take a look at it.
  14. ? , when I replace the model the player will see all vehicles with same model id replaced i don't want that well,i want for example : if i press [CHEETAH 1] button , all players will just see my car replaced without their cars that's it ( not matter button or other it's example ) do i need to use shaders? It's not possible to change model (dff) of one vehicle instance, you need to change whole model (in your example Cheetah), which will be applied either for one player or all players, but not for one car, it's applied to all Cheetahs anyway. If you want to change only texture, you can use shaders instead of importing txd, that is possible.
  15. Rataj

    Lock System

    If I got it, you just want suggestions to improve your resource, right? I think you should save your lock status into a database, so it'll stay after server restart. Also definitely add option to lock your vehicle from outside. But I'm not sure if my suggestions are good for you, since you didn't write what gamemode is this for. RPG? Freeroam?
  16. Hi, I was in MTADayZ team as translator and (besides translating) I previously remaked this resource and it works fine. I also added some new features to it, but unfortunately for you, I'll not share that script, because I'm not original author of the resource. I will try to help you fix your problem anyway. in client.lua on line 321 change this if hitElement and getElementType(hitElement) == "object" then to if hitElement and getElementType(hitElement) == "object" and getElementData(hitElement,"object.health") then in server.lua add line between lines 79 and 80 including (this shouldn't be necessary, but try it too, if other things will not help you) if(health <= 0)then setTimer(onObjectDestroy, 500, 1, object, id) end for extra check of already bugged objects also change line 26 from local qh = dbQuery( db, "SELECT * FROM base_objects" ) to local qh = dbQuery( db, "SELECT * FROM base_objects WHERE health > 0" ) or edit your SQL file and remove objects with health 0 I'm not sure about this, I didn't test it, so try this and tell me, if it helped.
  17. Kdyby ti přebírali hráče kopírováním názvu serveru, to se nahlásit dá, ale jak již uvedl 1LoL1, clan tag může mít každý, jaký chce.
  18. Rataj

    Pedmaker

    Also when you are using arguments I would suggest you to add some condition to detect if player filled all necessary arguments and if not, output some syntax. Also check if arguments which need to be numbers are actually numbers and convert them using tonumber function, like Donut. mentioned before. You'll also prevent errors when you don't fill arguments properly.
  19. You can save every onPlayerChat and include some saving function to outputChatBox too. But anyway.. is it necessary? What about some privacy for your players?
  20. Can you tell us if debugscript outputs some errors?
  21. For playerblips you need to check if blip is attached to something and re-attach it again in second loop. Then it should work fine.
  22. You are not supposed to put anything inside that array. Just normally create your blips and attach script I wrote.
  23. You need to save deleted blips somewhere and then load them again, if they're nearby. local hiddenblips = { } setTimer(function() local localX, localY = getElementPosition(localPlayer) for _, blip in pairs(getElementsByType("blip")) do local blipX, blipY = getElementPosition(blip) local maxdistance = getBlipVisibleDistance(blip) local r, g, b, a = getBlipColor(blip) if(getDistanceBetweenPoints2D(localX, localY, blipX, blipY) > maxdistance) then table.insert(hiddenblips, { blipX, blipY, getBlipIcon(blip), getBlipSize(blip), getBlipOrdering(blip), maxdistance, r, g, b, a }) destroyElement(blip) end end for key, blip in pairs(hiddenblips) do if(getDistanceBetweenPoints2D(localX, localY, blip[1], blip[2]) < blip[6]) then createBlip( blip[1], blip[2], 0, blip[3], blip[4], blip[7], blip[8], blip[9], blip[10], blip[5], blip[6] ) hiddenblips[key] = nil end end end, 500, 0)
×
×
  • Create New...