Jump to content

Perfect

Members
  • Posts

    563
  • Joined

  • Last visited

Everything posted by Perfect

  1. Perfect

    Remove Object

    my code remove all trucks or yours ? (whats the real problem and what you want)
  2. Current release last edit in 2010, so it have mta sa 1.3.1 functions too ?
  3. Perfect

    Remove Object

    try this. addEventHandler ("onResourceStart",resourceRoot, function objectRemover() local objects = getElementsByType ( "object" ) local myObject = objects == 3569 if ( myObject ) then removeWorldModel(myObject, 1000, 2234.390625, -2244.828125, 14.9375) -- Model setElementAlpha ( myObject, 0 ) end end) function restoreall() restoreAllWorldModels() setOcclusionsEnabled(false) setElementAlpha ( myObject, 255 ) end addCommandHandler("restore", restoreall)
  4. and what mtadaig says again ? Maybe that gta sa version is old, buy new gta san andreas and try again.
  5. Perfect

    Remove Object

    lol why change player alpha to 0 i mean change object alpha to zero, try this (not tested). local myObject = removeWorldModel(3569, 1000, 2234.390625, -2244.828125, 14.9375) addEventHandler ("onResourceStart",resourceRoot, function() removeWorldModel(3569, 1000, 2234.390625, -2244.828125, 14.9375) -- Model setElementAlpha ( myObject, 0 ) end) function restoreall() restoreAllWorldModels() setOcclusionsEnabled(false) setElementAlpha ( myObject, 255 ) end addCommandHandler("restore", restoreall)
  6. Dude, i write here, becouse idk where is a problem, so why u ask me? Lol, i am asking you because maybe you're using old version of gta sa or you modified gta sa. Try reinstalling gta sa. If still not working then go here: viewtopic.php?f=104&t=31668 and follow the instructions.
  7. Perfect

    Remove Object

    use setElementAlpha
  8. First download the resource then go to mta sa/server/mods/deathmath/resources/gameplay and put resource there. (usually it work) if still not work then unzip resource then put again.
  9. Try reinstalling mta. I try it few time so maybe it is gta sa problem ?
  10. Lol, i don't mean anything about animations, i am saying about jumping to high buildings.
  11. Hi All, Today i just watch this video: https://www.youtube.com/watch?v=8ZHG6C4yaNw and thinking, can that happend in mta ? its possible to make parkour in mta using those functions ? getElementsByType attachElements setTimer
  12. Perfect

    [HELP] Debug

    In the first post. But okey: [2012-12-31 18:16:16] WARNING: info\News_Box.lua:24: Bad argument @ 'dxDrawText' [Expected string at argument 1, got nil] Maybe, you Did'nt did second debug because the warning date and time are same in first and second code. go to server and write again /debugscript 3 in chat box
  13. Perfect

    [HELP] Debug

    what is your resource name and how many scripts are inside ? (i think that error is not from that code, maybe from another resource or script)
  14. maybe for car thingy you can use this resource: https://community.multitheftauto.com/ind ... ls&id=6222
  15. Did'nt Tested, but looking Awesome. Good/Great Job!!!
  16. Perfect

    moveObject

    [ Yes. No, the object go through any other objects (maybe except players/peds) and yes. Just check this Example in wiki. someGuy = getPlayerFromName ( "GhostXoP" ) -- If a player called GhostXoP was found then if ( someGuy ) then -- Get the player's position x, y, z = getElementPosition ( someGuy ) -- Create a bed (1700) object near to the player bed = createObject ( 1700, x + 5, y, z ) -- Move the bed towards the player over 3 seconds (3000 milliseconds) moveObject ( bed, 3000, x, y, z ) -- Tell the player in the chat box outputChatBox ( "Moving a bed towards you!", someGuy ) else -- Tell everyone that a player called 'GhostXoP' could not be found outputChatBox ( "Player GhostXoP doesn't exist" ) end Just test the script for better understanding.
  17. Maybe he mean Rank system.
  18. Awesome guys , thank you so much and happy new year.
  19. Hi All, there is any way to store health smoothly ? by smoothly i mean like if we put water in glass, water filled the glass smoothly. I have 1 idea, i will set health to 1 then 2 then 3 then ... then 100. but it will take some time. there is any easy way to do it ? ( same thing like how we loss health when m4 or any other weapon hit us)
  20. I think, you need to install 6 mta's , but, more lag! are you serious ?
  21. You can get 20mb/s connection with less than 40€ and I have that. My servers (yes, I run 6 servers on my home computer) are not lagging at all. 6 servers ? i only can run 1, how to run 2 or more. can you please tell me ?
  22. are you sure you don't need Rz ? Lol, i did'nt see Rz is in Bargate.
×
×
  • Create New...