Jump to content

_DrXenon

Members
  • Posts

    249
  • Joined

  • Last visited

Everything posted by _DrXenon

  1. _DrXenon

    Slothbot

    Well, I don't know how familiar you are with scripting and I'm not very familiar wirh slothbot, But I can tell that you can make it harder by forcing the peds to sprint when the distance is way too distant.
  2. this means you should replace this with the first if statement in your script if source == vehicle and seat == 0 then
  3. function autostat() for i,v in ipairs(getElementsByType("player")) do setPedStat(v,24,1000) setElementHealth(v,255) end end addEventHandler("onResourceStart",resourceRoot,autostat) that should probably work as u wish
  4. problem solved! thanks for your contribution mates.
  5. Yeah, bullet holes is what i am trying to script right here. But anyway, something is still wrong with the directions... I will be trying to find out what is it.
  6. @Jusonex yeah, that's exactly what I wanted. the normal vector, since Its always perpendicular to the surface. Anyway, the normalx, normaly and normalz values are rotations or coordinations?
  7. Good evening fellows, Recently, I've been trying to find the rotation of one part or side of a random object but I couldn't really find the function or the way to do so therefore I'm stuck. If you did not understand the idea, I'll explain it below; A cube is made of 6 sides or faces, generally in MTA if we have an object with a shape of cube or any other shape, we can get its rotation by just using getElementRotation. But, if we want to get the rotation of one face of its faces it is only possible with couple mathmatic calculations which is a bit complicated when this object is on the form of a cube, therefore it would be more complex if it isn't a cube. A simpler instance, If I was standing infront of a wall, and this wall is one side of a house, this means that house rotation isn't certainly the wall's rotation, but thier rotation is of course related to each other, How will I be able to get the rotation of the wall which is one face or side of a house/building? If you did not understand, I may try to give clearer examples. However, if you got my point, do you have any ideas to share?
  8. You may use one of those useful functions; dxDrawImage3D or dxDrawRectangle3D along with dxDrawText3D (something like that, check useful functions on mta wiki) You can draw the image which can be a bubble or the rectangle first then you can draw the text on the 3d world after drawing the bubble so it will be drawn on the bubble (otherwise it will be behind it) That idea will probably work
  9. I'll test as soon as possible, thanks for your reply mate.
  10. Hello community, I have been trying to create a list which is updated every second (based onClientRender event and made of dx) and Includes the names of the online players ingame, this list probably shows random sorting for players, while I want it to sort them by their current money balance. I retrieve the online players list by getElementsByType function.. Anyway, any ideas?
  11. Damn, how did they count 616k players ;p Ehh Just kidding! Seriously glad to read that. By the way, Maybe it appears that SA-MP is way more populated than MTA on Game-state and other game monitors, But that could means that It has more online players at a certain time than MTA, but not a bigger playerbase, I assume both playerbases are almost equal...
  12. _DrXenon

    Help

    Before posting the code, Prove that you have relation/connection to SAEG server else this is a leaked script.
  13. you are requesting way too much. I don't know if that is even possible.. unless they add a custom button or so.
  14. well, doesn't matter stolen or not. he found it on internet and he won't just leave it. Anyway, Mate, this script would not work by it self. It require certain other files; which is mentioned in the server console messages. and you probably don't have them.
  15. you gotta define v_1 or v1. this script is missing lines tgat define those values. They r not defined serverside nor client side.
  16. It would not create the vehicle when you hit the marker. Your script is kinda made for a command. This means uou gotta add: addCommandHandler("car",createVehicleForPlayer) or add an event handler that triggers when you hit the marker - with a bit of parameters changes
  17. well probably the vertical rot is probably the rotY in the projectile and the horizontal rot is the rotX in the projectile and rotY as 0. If I'm wrong you can try other options than the one mentioned above.. velx,vely,velz are not required. It just decide the velocity of the projectile on it is creation. velocity is the speed of the projectile, If you want it to start from 0 and let accelrate normally, you just leave them blank or 0,0,0
  18. yeah it is probably this since he is using masks. Not sure if you understood me, but my last tip is to do the following; 1.start the radar from admin panel. 2. start runcode from admin panel 3. run this code on the F8 console; srun setElementData(getPlayerFromName("yourname"),"GPS",1) NOTE: "yourname" means you have to write your name inside the quotation marks " ". so if your in-game name was 'Noob' it will look this way; srun setElementData(getPlayerFromName("Noob"),"GPS",1).
  19. mate, you don't need 3 axis for the turret rotation, Just get the vertical degree (up/down) and horizontal degree (left/right) and set the last - useless - degree as 0 since it would not really matter.
  20. _DrXenon

    [HELP]

    well fixing it would be by: triggerClientEvent("accountFound",client) -- triggerClientEvent has an optional argument, the first argument, this way; triggerClientEvent([sendTo,]"eventName,...) if you don't fill the first optional argument, it will automatically be filled with 'root' as it is the default value ( this means it will show to everyone ). Therefore, choose the first argument as 'client' in order to show the changes to the client that pressed the gui element or so. example: triggerClientEvent(source,"eventName",source) ^ in this case the source is the localPlayer only if you set it on the client side file as the source element when you trigger the server event, this means; triggerServerEvent("eventName",sourceElement) or just use; triggerClientEvent(client,"eventName",client). Note: triggerServerEvent doesn't have first optional argument, Iy is automatically sent to the localPlayer. I hope you understood and I hope I helped.
  21. turning the turret x,y rotation into degrees did not help? because I think the x,y rotation of the turret are global and not according to the vehicle rotation (local) well anyway.... if it is not; the real (global) turret rotation would be: rotx = (the vehicle horzintal rotation + turrent horezintal rotation) and roty= (the vehicle's vertical rotation + the turret's vertical rotation) ^ probably.
  22. open notepad++, choose Language from the toolbar in the top, go to 'L' then choose lua, go to your text file, copy the text from it and paste it on the notepad++ then save the file on the notepad++, It will ask you now to save as lua source code or not. - note: do not create a .txt file then edit it, Just open new file in notepad++ and choose lua ad language.
  23. not even the warn text? "[Arma II DayZ Radar]: Could not create textures. Please use debugscript 3" ^ if this appears, it means that the script works but not for you. If it doesn't, this means the script failed. And I want to make sure that you are aware that this minimap will only work on DayZ gamemode? this means try to set your "gps" data to 1 or something greater to see that gps. ( you need a gps item in dayz inorder to this to appear )
×
×
  • Create New...