Jump to content

devildead622

Members
  • Posts

    144
  • Joined

  • Last visited

Everything posted by devildead622

  1. how do I run this command only for admin? function openMyGate ( player ) moveObject ( myGate1, 2500, 301.79998779297, -1566.9000244141, 23.5) moveObject ( myGate2, 2500, 356.5, -1464.5999755859, 23.5) setTimer(movingMyGateBack,5000,1,player) end addCommandHandler("portaoout",openMyGate)
  2. and this would cause could do with Sniper farther?
  3. I am Brazilian, it is difficult to understand the wiki after translating. You can Diser if any of these functions alters the scope of the gun?
  4. how to have a command to mark the position of somewhere (for example with the command: /mark) and then return to this place with another command (example: /gomark) Only for admin?
  5. let's see if someone can give me sure of it is impossible
  6. I wonder if there is any way/resource to the sniper can see other player further, beyond their normal range.
  7. lol, did not know that! and you know how to use?
  8. Does anyone know of any resource, which causes the passenger cars and motorcycles can shoot?
  9. Thanks, can check if my code is complete? function createTheGate () myGate1 = createObject ( 971, 301.79998779297, -1566.9000244141, 29.5, 0, 1, 289.75 ) myGate2 = createObject ( 971, 356.5, -1464.5999755859, 28.89999961853, 0, 359.5, 74 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate ) function teleport ( player ) if string.find( getPlayerName( player ) , "[OuT]", 1, true ) then setElementPosition ( player, 307, -1520, 25 ) end end addCommandHandler("baseout",teleport) function openMyGate ( player ) if string.find( getPlayerName( player ) , "[OuT]", 1, true ) then moveObject ( myGate1, 2500, 301.79998779297, -1566.9000244141, 24.5) moveObject ( myGate2, 2500, 356.5, -1464.5999755859, 24.5) setTimer(movingMyGateBack,5000,1,player) end end addCommandHandler("open",openMyGate) function movingMyGateBack ( player ) if string.find( getPlayerName( player ) , "[OuT]", 1, true ) then moveObject ( myGate1, 2500, 482.89999389648, 2884.8000488281, 14.10000038147 ) end end addCommandHandler("close",movingMyGateBack)
  10. I wonder how do I make a command to set the position of a player?
  11. Do not understand your question! Maybe Google Translate is complicating everything!
  12. not yet put the SetTimer but ta giving an error http://i.imgur.com/AsiOafd.png
  13. Thanks! And how: after 5 seconds, the "movingMyGateBack" is called automatically after typing the command "open"? In SAMP was a function called setTime, do not know how it works here at MTA
  14. Hello, I am new to Scripts for MTA, and I wonder, as I do for anyone who has "[out]" in its name can use the commands "/ open" and "/ close"? And it's not for everyone! function createTheGate () myGate1 = createObject ( 988, 313.599, -61.799, 1.6499, 0, 0, 0 ) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate ) function openMyGate ( ) moveObject ( myGate1, 2500, 308.5, -61.799, 1.6499 ) end addCommandHandler("open",openMyGate) function movingMyGateBack () moveObject ( myGate1, 2500, 313.599, -61.799, 1.6499 ) end addCommandHandler("close",movingMyGateBack) I am PT-BR and translate the topic by google translator, sorry if you have anything wrong (it is not my fault)
×
×
  • Create New...