Coffey Posted March 22, 2013 Share Posted March 22, 2013 Hey. I want to make an area, when you enter there, you are unable to attack other players. So I really dont know anything about lua, but I know how should I do this. First I should make a bool variable, to set the player isPlayerIntheSafeArea or something like that. So when the guy is in the area, it gives him a message, and when he tries to attack (with weapon or melee) you cant do anything. How can I do that? Thanks for help. Link to comment
ZL|LuCaS Posted March 22, 2013 Share Posted March 22, 2013 toggleControl onColShapeHit onColShapeLeave onClientPlayerDamage triggerClientEvent triggerServerEvent cancelEvent() Link to comment
Coffey Posted March 23, 2013 Author Share Posted March 23, 2013 Alright, Im already stuck I want to make a ColShape but I dont know which coordinates I have to give. Theres a rectangle here: So where should I save the two positions to make the rectangle colshape? Thanks for the help. Link to comment
Castillo Posted March 23, 2013 Share Posted March 23, 2013 What do you mean by "save"? you just get the position, and create it. Link to comment
Ab-47 Posted March 24, 2013 Share Posted March 24, 2013 Stand in the bottom right of the area you want the col-shape then press "P" to open your admins panel and note down your "X", "Y" and "Z" co-ordinates, that'd be the first step of making a col-shape. You can use col-Circles, col-Cuboids, etc. I've been using colCuboid, works fine so: createColCuboid( x, y, z, length, width, height) You can complete the rest now 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