Jump to content

Timiimit

Members
  • Posts

    142
  • Joined

  • Last visited

Everything posted by Timiimit

  1. but marker hit the fence! is that mta element?
  2. It touched fence at begining of la airport.
  3. i have but how to detect if its any object in marker!!!!!!! post eg. plzz.
  4. but i have attach them and it worked!!! i just want to know how to detect if is any object in marker(not only one specified)!!
  5. no. I attached marker to ped that it follows the ped. now i must detect if anyobject is in marker not only one specified. can i make this with "for" function? if yes how!??
  6. Hi! is it possible to detect object in marker?
  7. i know i have but its not working in admin panel commands aren't working too!
  8. Dont u understand I used run command in admin resource but its not working!!
  9. Timiimit

    wierd error

    Hi! in my server i tried to do /run command and I typed: "/run createVehicle(411, 0, 0, 6)" but nothing happened. anyone know what is wrong?
  10. Timiimit

    help!!

    Hi! I want to know what is wrong with this: function detecting( theObject, matchingDimention ) if getElementType ( theObject ) == "object" then botHit() -- some function end end its started by event onColShapeHit and botHit is name of some other function. but when my colShape hits the object nothing happens(doesn't go to botHit() i tested that by adding outputConsole )
  11. why is this not working?: local hillArea = getElementsByType( "object" ) -- add hill_Enter as a handler for when a player enters the hill area function hill_Enter ( thePlayer, matchingDimension ) if getElementType ( thePlayer ) == "player" then --if the element that entered was player --let's get the name of the player local nameOfThePlayer = getPlayerName ( thePlayer ) --announce to everyone that the player entered the hill outputChatBox ( nameOfThePlayer.." entered the zone!", getRootElement(), 255, 255, 109 ) end end addEventHandler ( "onColShapeHit", hillArea, hill_Enter )
  12. thx! Only script that worked today!! but I want to trigger this event when i touch any object. anyone?
  13. other scripts that are in this recources are working so it must be wrong lua!!?????? (from wiki nothing is wrong gotta be BUG)
  14. <meta> <info author="[GFL]TimiimiT" name="something" version="1.0"/> <script src="test.lua" /> </meta> btw I started the resource! tried onPlayerContact not working: function outputElementType ( prev, current ) if ( current ) then outputChatBox ( "You have hit an "..getElementType ( current ) ) end end addEventHandler ( "onPlayerContact", getRootElement(), outputElementType )
  15. i think that is thesame. anyway it's still not working!!!
  16. I want it to trigger it only once! not again when its not targeting anything. + nothing happens at this: function onPlayerTarget ( targetElem ) if getElementType ( targetElem ) == "object" then output("someone touched an object!") end end addEventHandler ( "onPlayerTarget", getRootElement(), onPlayerTarget ) HELP???!!!:::::-----....._____
  17. Hi! I want to know how "onColShapeHit" works! I read the wiki page but i still don't get it. I tried this: function test( thePlayer ) outputChatBox("it's working!!") end addEventHandler("onColShapeHit", getRootElement(), test) ...But it doesn't work. I want to make script that outputs 'it's working!!' when I touch any object. why noone knows?
  18. Timiimit

    chatbox

    I so not understand the script (i looked at it and tried to find out). Can u please explain or make easied script?
  19. Timiimit

    chatbox

    is it possible to detect what someone sayd?
  20. thx! Edit: still not working... + no errors
×
×
  • Create New...