Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. It says it on the wiki page:
  2. You can't execute hardcoded commands as far as I know.
  3. I don't understand what do you mean.
  4. You had forgot to get the vehicle. function stunt ( ) local x, y = guiGetScreenSize ( ) local veh = getPedOccupiedVehicle ( localPlayer ) if ( veh ) then local x, y, z = getElementPosition ( veh ) local px, py, pz = x + 5, y + 10, z + 2 local distance = getDistanceBetweenPoints3D ( x, y, z, px, py, pz ) if ( distance <= 150 ) then local sx, sy = getScreenFromWorldPosition ( x, y, z + 0.55, 0.06 ) if ( sx ) then local scale = 1 / ( 0.3 * ( distance / 150 ) ) dxDrawRectangle ( sx - 100, sy - 105, 200, 70, tocolor ( 0, 0, 0, 200 ) ) dxDrawText ( "#000000Fabioxps", sx, sy - 70, sx, sy - 30, tocolor ( 255, 255, 255, 255 ), math.min ( 0.4 * ( 20 / distance ) * 1.4, 4 ), "default-bold", "center", "bottom", false, false, false, true ) end end end end
  5. Castillo

    Download resources.

    You can't use something client side that it hasn't been downloaded.
  6. If you don't tell us what is the problem, we won't be able to tell you what is wrong on that script.
  7. No offense, but you won't get much for just $5. Why don't you start learning instead?
  8. I don't know how would you replace markers, maybe with shaders, but I'm not sure.
  9. Replacing pickups is not stable as far as I know, but you can do it the same way as you replace skins/objects/etc.
  10. createPickup giveWeapon cancelEvent onPickupHit
  11. @manve: That doesn't make any difference. @GamerDeMTA: setWeaponProperty only works with weapons that can actually fire ( I'm not 100% sure about this ). You also have an useless 'end' there. About the fighting style, you may want to use "onPlayerSpawn" instead of "onPlayerJoin".
  12. guiSetEnabled setTimer guiSetText
  13. Oh yeah, fixed it, copy it again.
  14. Custom animations aren't yet supported.
  15. messages = { {"Enjoy Your Stay "}, {"Website:\n[url=http://www.rog-mta.tk]http://www.rog-mta.tk[/url]"}, {"Have Fun, Or Be Punished!"} } currentMessage = "" function genorateMessage() return unpack(messages[math.random(#messages)]) end function dxRectangle() dxDrawRectangle(998, 285, 275, 487, tocolor(0, 0, 0, 150), true) dxDrawLine(998, 286, 998, 774, tocolor(255, 255, 255, 255), 1, true) dxDrawLine(996, 772, 1270, 772, tocolor(255, 255, 255, 255), 1, true) dxDrawLine(996, 285, 1270, 285, tocolor(255, 255, 255, 255), 1, true) dxDrawLine(1270, 284, 1270, 772, tocolor(255, 255, 255, 255), 1, true) dxDrawText("INFORMATION", 1008, 296, 1262, 328, tocolor(255, 255, 255, 255), 2, "default-bold", "center", "top", false, false, true, false, false) dxDrawLine(996, 348, 1270, 348, tocolor(255, 255, 255, 255), 1, true) dxDrawText(currentMessage, 1018, 352, 1249, 753, tocolor(255, 255, 255, 255), 1.5, "default", "left", "top", false, false, true, false, false) end setTimer( function () addEventHandler("onClientRender",root,dxRectangle) setTimer( function () removeEventHandler("onClientRender",root,dxRectangle) end, 10000, 1 ) currentMessage = genorateMessage() end, 15000, 0 )
  16. Using a "corona" marker was my first though, but then I wasn't sure if it would look like that.
  17. You can't set properties for the fist, as far as I know.
  18. Castillo

    Panel Help

    Is it that hard to search?
  19. We don't give support for leaked scripts.
  20. Castillo

    Panel Help

    There's no need to clear it all, you can just update the player that actually left/joined/changed nick. Search on the forums, there's a script for this.
  21. It's long, but there's something called "search".
×
×
  • Create New...