Jump to content

SparkzZ

Members
  • Posts

    22
  • Joined

  • Last visited

Everything posted by SparkzZ

  1. I have got this problem that whenever I create a dxRectangle and on top of it a dxText with the same sizes, Always the text has different width and height, I don't know why. the thing is I want to convert the rectangle width and height so it become the same as the text's width and height, is there a calculation for that ? http://imgur.com/a/ThWmn
  2. I have a script that contains 2 client files, let's assume they are called scriptClient1.lua and scriptClient2.lua I created a function in scriptClient2.lua and want to use this function in scriptClient1.lua without exporting it in the meta.. is that possible ? and how ?
  3. I guess I resolved it, I took the coordinate and tested it against water from all directions and to ensure there is no obstacles I added 500 to the z value. I am still testing it to make sure that it is 100% accurate, but as far it seems working well.
  4. Wouldn't work, isElementInWater doesn't work with colshapes. As far as I tried it only works with players and peds.
  5. That wouldn't work as there are many water sources and their area could be huge and distance between points won't be as accurate as I want it to be.. also I know there isn't a function that achieves that easily, am asking for a method or and idea that may accomplish what I need, actually I myself had idea of test lines against water from all directions but figured that won't work too because there may be obstacles in the ways of the lines.
  6. I want to know if a specific coordinate is near water, I can't think of a method that can do that. Thanks in advance
  7. yea.....it's already in DDC
  8. https://community.multitheftauto.com/index.php?p= ... ils&id=621
  9. SparkzZ

    Help!~!

    meta.xml ? ;D u mean acl or meta ?
  10. SparkzZ

    Help!~!

    /debugscript 3 when i open f7: WARNING:race_starter_pack\server.lua:490: Access denied @ 'getClientIP' ERROR:race_starter_pack\panel_c.lua:113:attempt to concatenate local 'ip' (a nil value)
  11. SparkzZ

    Help!~!

    i downloaded race_starter_pack and when i open F7 Help !
  12. k /debugscript 3 WARNING:Loading Script Failed:push/push.lua:9: ')' exepted near 'pushes' Script now addCommandHandler("push", function(p, c, t) local pushPlayer = findPlayer(t) if pushPlayer then local pushVehicle = getPedOccupiedVehicle(pushPlayer) if pushVehicle then local speedX, speedY, speedZ = getElementVelocity(pushVehicle) setElementVelocity(pushVehicle, 0, 0, 0+0.2) outputChatBox("getPlayerName(p).." pushes "..getPlayerName(pushPlayer).." up!", root, 255, 0, 0) end end end ) function findPlayer(name) local name = name:lower() for i, p in ipairs(getElementsByType("player")) do local fullname = getPlayerName(p):lower() if string.find(fullname:gsub("#%x%x%x%x%x%x", ""), name, 1, true) then return p end end return false end
  13. now it's outputChatBox("getPlayerName(p).." pushes "..getPlayerName(pushPlayer).." up!", root, 255, 0, 0) after i did this script not working can u give me Script with colors coz i tryied but when i put "getPlayerName(p).." with colors didn't work if i removed " it works
  14. Sorry i am new scripter outputChatBox(getPlayerName(p).." pushes "..getPlayerName(pushPlayer).." up!") how to set it with colors ?
  15. /debugscript 3 ERROR:push/push.lua:16:attempt to index local 'name' (a nil value)
  16. i did a Push Script But i dosn't work addCommandHandler("push", function(p, c, t) local pushPlayer = findPlayer(t) if pushPlayer then local pushVehicle = getPedOccupiedVehicle(pushPlayer) if pushVehicle then local speedX, speedY, speedZ = getElementVelocity(pushVehicle) setElementVelocity(pushVehicle, 0, 0.5, 0+0.2) outputChatBox(getPlayerName(p).." pushes "..getPlayerName(pushPlayer).." up!") end end end ) function findPlayer(name) local name = name:lower() for i, p in ipairs(getElementsByType("player")) do local fullname = getPlayerName(p):lower() if string.find(fullname:gsub("#%x%x%x%x%x%x", ""), name, 1, true) then return p end end return false end what's the probleme ?
  17. I am New On Scripting And I am Making an RPG Server and need 1 script if 1 enter marker shows Him MSG that he want Get this Job Or Cancel ! Job:Police Marker Place: X>1552.80383 Y>-1677.72778 Z>16.19531 Help
×
×
  • Create New...