Jump to content

Safe Area


Coffey

Recommended Posts

Posted

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.

Posted
toggleControl 
onColShapeHit 
onColShapeLeave 
onClientPlayerDamage 
triggerClientEvent 
triggerServerEvent 
cancelEvent() 

MTA Scripters. ♥♥♥Beijinhos♥♥♥

Posted

Alright, Im already stuck :D

I want to make a ColShape but I dont know which coordinates I have to give.

Theres a rectangle here:

9DNnkQD.jpg

So where should I save the two positions to make the rectangle colshape? Thanks for the help.

Posted

What do you mean by "save"? you just get the position, and create it.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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 ;)

And now Aurora is back again, pm for more info.

Ex. Lead dev & L6 Staff at AUR, NGC, MTA RP & SAA.

Ex. Developer at Community of Social Gamers - CSG

Ex Founder of International Gaming Community - IGC and Union of Individual Players- UIP

9o6E8.png Ab-47

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...