Jump to content

Bonsai

Members
  • Posts

    1,031
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Bonsai

  1. Try something like this: Just the structure, might have errors. if (teamName) == "Test" then if getElementData(myGate1,"gate.state") == 0 then moveObject ( myGate1, 3000, 2522.1999511719, -1278, 38.900001525879 ) setElementData(myGate1,"gate.state",1) outputChatBox("Gate has been opened!",thePlayer,0,255,0,true) elseif getElementData(myGate1,"gate.state") == 1 then moveObject ( myGate1, 3000,2522.2001953125, -1278, 35.5 ) setElementData(myGate1,"gate.state",0) outputChatBox("Gate has been closed!",thePlayer,255,0,0,true) end else outputChatBox("You don't have access to open the gate!",thePlayer,255,0,0,true) end
  2. Your script checks if the players is in the right team and then just opens the gate without checking the gates state. So after you check for the team you need to put another if and check for the state. If the players is not in the right team, thats your elseif, it checks if the state is == 1 and moves it again.
  3. As far as I can see the elseif in line 14 belongs to if (teamName) == "Test" then . So how could it work like this.
  4. - Get everything until that position - Get everything after that position - add your stuff (like 1st half + new stuff + 2nd half) - write it to a new file. Anyway, I don't think you should actually modify a script file like this.
  5. So just use the peds position + calculate the position in a certain distance infront of it. Im pretty sure there already is some function on the wiki to do this, since its used on shooter maps to make projectiles fly the right direction. But its not that hard anyway. Then use processLineOfSight on these two positions and it always should check whats in the peds view.
  6. these scripts were released. has no problem with being sold. Please go kill yourself.
  7. At least for the Mutligamemode, looks like all the other Multigamemodes that had been leaked/stolen.
  8. You really want people to be able to place resources on your server? That doesn't seem to be a good idea.
  9. It might be possible to compare the input (like the first key pressed) with string.upper, at least for characters.
  10. What are you talking about? The link is working fine.
  11. I guess you guys hardly know what Backdoor even means, especially because that script file doesn't even require any acl rights. You may test that if you know how to. Also, nobody forces you to use this. Further, nobody said you should just put this on your server and start it. Bonsai
  12. Just to screw people who intend to do stupid things with it I don't like it either.
  13. There won't be any updates etc. As I said I'm out of MTA. I just thought it might be more useful to put it somewhere in the community instead of just deleting it. And its not buggy at all. You just need to know how to handle such things.
  14. Hey Peeps, this is gonna be the last version of this Multigamemode. I tried to make it running as smooth as possible. If you are using an ealier version on your server, or working on some own project using parts out of this script, I strongly recommend you to update or compare the parts you used, since I did a lot of changes/fixes, that you shouldn't miss. Also, its fully uncompiled now, so you have control about anything. There is probably still enough stuff that could be improved/fixed or made in a better way, but thats up to you. I also included some Maps and a needed ACL file so you can try it out right away. If you find bugs, things you don't like, or stuff I didn't do the best way, have fun changing anything you want. You are not allowed to sell it. Pictures: Download: http://rghost.net/57420126 Bonsai
  15. Yeah, because they are deleted.
  16. Some functions are server side, some are client side and some are shared. This function "isObjectInACLGroup" is server side only. If you want to restrict commands to admins only you should set the 3rd argument of addCommandHandler to "true" and add that command in the acl groups that should be able to use it. addCommandHandler ( string commandName, function handlerFunction, [bool restricted = false, bool caseSensitive = true] ) EDIT: I noticed this 3rd argument isn't existing client side, but still try to do this acl stuff. Not sure if it only works for admin then. Else you would have to attach a server side command to an function that triggers a client side event that enables this flying cars stuff I guess.
  17. You will have to do some weird shit to simulate a second camera. It will take half of your fps and won't look that good. Search for some Rear View Mirror Resources to see how to do this. But in my opinion its not a good thing.
  18. Actually its a clientside function, therefore it only affects the player who uses that function/command.
  19. Yes, viewtopic.php?f=91&t=73971 viewtopic.php?f=91&t=73749
  20. How many topics are you planning to create about this problem? Why don't you just set download to "true" so clients will download them automatically? Do you really want to waste any more time on this way of handling it?
  21. Bonsai

    New Event?

    https://wiki.multitheftauto.com/wiki/OnPlayerWasted If the killerWeapon/deathReason is 54 the played died by falling. Not sure how reliable that is, but should work most of the times.
  22. You said Freeroam with races. I just thought about Need for Speed, driving around and at certain places you can start a race.
×
×
  • Create New...