Reaper Posted April 5, 2016 Posted April 5, 2016 Guys, Can anyone give good gate system script. but it can open any gates in MTA (Sorry My Bad English)
KariiiM Posted April 5, 2016 Posted April 5, 2016 Can't you search by yourself first ? https://community.multitheftauto.com/
Reaper Posted April 6, 2016 Author Posted April 6, 2016 Can't you search by yourself first ?https://community.multitheftauto.com/ I search but i cant fine suitable script boss.... tnx for help me
Reaper Posted April 6, 2016 Author Posted April 6, 2016 Can't you search by yourself first ?https://community.multitheftauto.com/ I search but i cant fine suitable script boss.... tnx for help me
Rataj Posted April 6, 2016 Posted April 6, 2016 What about making your own using https://wiki.multitheftauto.com/wiki/MoveObject?
Rataj Posted April 6, 2016 Posted April 6, 2016 What about making your own using https://wiki.multitheftauto.com/wiki/MoveObject?
ramzi Posted April 6, 2016 Posted April 6, 2016 gate1 = createObject (Gate ID, x,y,z, rx,ry,rz ) gatecol = createColCircle (x, y,z)----Put here the new dimensions u move ur gate to. local teamName = "Your Team name here" function OpenGates (thePlayer) if ( getTeamName(getPlayerTeam(thePlayer)) == "Your Team name here" ) then moveObject (gate1,2000,x,y, z ) end end addEventHandler( "onColShapeHit", gatecol, OpenGates ) function CloseGates (thePlayer) if ( getTeamName(getPlayerTeam(thePlayer)) == "Your Team name here" ) then moveObject (gate1,2000,x, y,z )---Put here the original position of ur gate before it moves. end end addEventHandler( "onColShapeLeave", gatecol, CloseGates ) This is a simple gate code i've made months ago.Post here anything u dont understand from above.
ramzi Posted April 6, 2016 Posted April 6, 2016 gate1 = createObject (Gate ID, x,y,z, rx,ry,rz ) gatecol = createColCircle (x, y,z)----Put here the new dimensions u move ur gate to. local teamName = "Your Team name here" function OpenGates (thePlayer) if ( getTeamName(getPlayerTeam(thePlayer)) == "Your Team name here" ) then moveObject (gate1,2000,x,y, z ) end end addEventHandler( "onColShapeHit", gatecol, OpenGates ) function CloseGates (thePlayer) if ( getTeamName(getPlayerTeam(thePlayer)) == "Your Team name here" ) then moveObject (gate1,2000,x, y,z )---Put here the original position of ur gate before it moves. end end addEventHandler( "onColShapeLeave", gatecol, CloseGates ) This is a simple gate code i've made months ago.Post here anything u dont understand from above.
MKH_ Posted April 6, 2016 Posted April 6, 2016 The variable 'teamName' is being useless You want it for all or with groups or with teams ?
MKH_ Posted April 6, 2016 Posted April 6, 2016 The variable 'teamName' is being useless You want it for all or with groups or with teams ?
KariiiM Posted April 6, 2016 Posted April 6, 2016 You want it for all or with groups or with teams ? I just answered him that he defined the team name in a variable named 'teamName' and he didn't use it at all
KariiiM Posted April 6, 2016 Posted April 6, 2016 You want it for all or with groups or with teams ? I just answered him that he defined the team name in a variable named 'teamName' and he didn't use it at all
ramzi Posted April 6, 2016 Posted April 6, 2016 You want it for all or with groups or with teams ? I just answered him that he defined the team name in a variable named 'teamName' and he didn't use it at all what function should i change "teamName" to?Cuz script is w
ramzi Posted April 6, 2016 Posted April 6, 2016 You want it for all or with groups or with teams ? I just answered him that he defined the team name in a variable named 'teamName' and he didn't use it at all what function should i change "teamName" to?Cuz script is w
KariiiM Posted April 6, 2016 Posted April 6, 2016 Basically, now you have just to define the cordinations x,y,z , roation, add your team name if needed else remove this part and others like object ..etc click on the functions to read more about them in the wiki. local gate1 = createObject (Gate ID, x,y,z, rx,ry,rz ) local gatecol = createColCircle (x, y, z)----Put here the new dimensions u move ur gate to. local teamName = "Your Team name here" function OpenGates (thePlayer) if ( getTeamName(getPlayerTeam(thePlayer)) == teamName ) then moveObject (gate1,2000,x,y, z ) end end addEventHandler( "onColShapeHit", gatecol, OpenGates ) function CloseGates (thePlayer) if ( getTeamName(getPlayerTeam(thePlayer)) == teamName ) then moveObject (gate1,2000,x, y, z )---Put here the original position of ur gate before it moves. end end addEventHandler( "onColShapeLeave", gatecol, CloseGates )
KariiiM Posted April 6, 2016 Posted April 6, 2016 Basically, now you have just to define the cordinations x,y,z , roation, add your team name if needed else remove this part and others like object ..etc click on the functions to read more about them in the wiki. local gate1 = createObject (Gate ID, x,y,z, rx,ry,rz ) local gatecol = createColCircle (x, y, z)----Put here the new dimensions u move ur gate to. local teamName = "Your Team name here" function OpenGates (thePlayer) if ( getTeamName(getPlayerTeam(thePlayer)) == teamName ) then moveObject (gate1,2000,x,y, z ) end end addEventHandler( "onColShapeHit", gatecol, OpenGates ) function CloseGates (thePlayer) if ( getTeamName(getPlayerTeam(thePlayer)) == teamName ) then moveObject (gate1,2000,x, y, z )---Put here the original position of ur gate before it moves. end end addEventHandler( "onColShapeLeave", gatecol, CloseGates )
ramzi Posted April 6, 2016 Posted April 6, 2016 Basically, now you have just to define the cordinations x,y,z , roation, add your team name if needed else remove this part and others like object ..etcclick on the functions to read more about them in the wiki. local gate1 = createObject (Gate ID, x,y,z, rx,ry,rz ) local gatecol = createColCircle (x, y, z)----Put here the new dimensions u move ur gate to. local teamName = "Your Team name here" function OpenGates (thePlayer) if ( getTeamName(getPlayerTeam(thePlayer)) == teamName ) then moveObject (gate1,2000,x,y, z ) end end addEventHandler( "onColShapeHit", gatecol, OpenGates ) function CloseGates (thePlayer) if ( getTeamName(getPlayerTeam(thePlayer)) == teamName ) then moveObject (gate1,2000,x, y, z )---Put here the original position of ur gate before it moves. end end addEventHandler( "onColShapeLeave", gatecol, CloseGates ) Great,it has no errors now
ramzi Posted April 6, 2016 Posted April 6, 2016 Basically, now you have just to define the cordinations x,y,z , roation, add your team name if needed else remove this part and others like object ..etcclick on the functions to read more about them in the wiki. local gate1 = createObject (Gate ID, x,y,z, rx,ry,rz ) local gatecol = createColCircle (x, y, z)----Put here the new dimensions u move ur gate to. local teamName = "Your Team name here" function OpenGates (thePlayer) if ( getTeamName(getPlayerTeam(thePlayer)) == teamName ) then moveObject (gate1,2000,x,y, z ) end end addEventHandler( "onColShapeHit", gatecol, OpenGates ) function CloseGates (thePlayer) if ( getTeamName(getPlayerTeam(thePlayer)) == teamName ) then moveObject (gate1,2000,x, y, z )---Put here the original position of ur gate before it moves. end end addEventHandler( "onColShapeLeave", gatecol, CloseGates ) Great,it has no errors now
Deepu Posted April 6, 2016 Posted April 6, 2016 Dude Gate script is like something you learn at first.. you don't really have to download these silly resources when you can make them yourself using functions which are predefined. like MoveObject().. use your brain and do some math.. I'm not asking for Integral mathematics or differential calculus or something.. Not even 3D geometry.. Just a math or Physical maths to find the time taken to cover a certain distance with a certain velocity. Which is simple. Try making your own resources.. This is something that's DO-able
Deepu Posted April 6, 2016 Posted April 6, 2016 Dude Gate script is like something you learn at first.. you don't really have to download these silly resources when you can make them yourself using functions which are predefined. like MoveObject().. use your brain and do some math.. I'm not asking for Integral mathematics or differential calculus or something.. Not even 3D geometry.. Just a math or Physical maths to find the time taken to cover a certain distance with a certain velocity. Which is simple. Try making your own resources.. This is something that's DO-able
Saml1er Posted May 5, 2016 Posted May 5, 2016 Dude Gate script is like something you learn at first.. you don't really have to download these silly resources when you can make them yourself using functions which are predefined. like MoveObject().. use your brain and do some math.. I'm not asking for Integral mathematics or differential calculus or something.. Not even 3D geometry.. Just a math or Physical maths to find the time taken to cover a certain distance with a certain velocity. Which is simple. Try making your own resources.. This is something that's DO-able Hahahahahah. I was just going through your old posts for a good laugh and I was hoping that you changed your way of thinking because 2 years passed but nah you're still the same. I wonder why would someone rewrite functions? May God guide you....
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now