Bobba~ Posted September 17, 2011 Share Posted September 17, 2011 Hey guys, I need some script for locking an area for something like an special made team to enter that. Like, locking area69 for only members of the army. Ty Link to comment
mjau Posted September 18, 2011 Share Posted September 18, 2011 locking what u mean gates ? rocket protection? waht more info please Link to comment
Bobba~ Posted September 18, 2011 Author Share Posted September 18, 2011 Yea ;} I wanna do Mount Olympus, i made an awesome base there, and i just wanna lock that so only members from a special group ( special made to spawn there ) can only enter, if you fly over it u will get blown up by rockets. Link to comment
qaisjp Posted September 18, 2011 Share Posted September 18, 2011 Don't double post, remove your editied post. There are two ways to do it, personally the second way is easier for me. 1. Colshapes, on player enter, warp away from the base. 2. Markers, on player enter, warp away from the base. Link to comment
Bobba~ Posted September 18, 2011 Author Share Posted September 18, 2011 Yea, but can this be done that 1 special created group can spawn there? Link to comment
bandi94 Posted September 18, 2011 Share Posted September 18, 2011 function spawn() local teamname= getTeamFromName(getPlayerTeam(source)) if teamname="the team name" then spawnPlayer (source, float x, float y, float z, [ int rotation = 0, int skinID = 0, int interior = 0, int dimension = 0, team theTeam = nil ]) fadeCamera (source, true) setCameraTarget (source, source) end end Link to comment
Bobba~ Posted September 18, 2011 Author Share Posted September 18, 2011 I gotta paste that into a .lua file? And replace red marked text with the created team name? What do i all have to replace? Because i want the top of the mount olympus locked for 1 team. Link to comment
qaisjp Posted September 19, 2011 Share Posted September 19, 2011 bandi, really? wtf was that? getTeamFromName with the playerteam and you expect returning a string? wtf is spawnPlayer... Link to comment
Bobba~ Posted September 19, 2011 Author Share Posted September 19, 2011 So.. you know what i gotta do then? Link to comment
qaisjp Posted September 20, 2011 Share Posted September 20, 2011 Well, first make a colshape and post the code here. Then I can tell you from that onwards. Link to comment
Bobba~ Posted September 20, 2011 Author Share Posted September 20, 2011 Colshape? ( I iz awsum scripterz0r ) Link to comment
JR10 Posted September 20, 2011 Share Posted September 20, 2011 --Collision shape functions createColCircle createColCuboid createColRectangle createColSphere createColTube createColPolygon Link to comment
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