Jump to content

Area scripting.


Bobba~

Recommended Posts

Posted

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

Posted

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.

  • MTA Team
Posted

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.

Posted
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 
  
  

Posted

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.

  • MTA Team
Posted

bandi, really? wtf was that? getTeamFromName with the playerteam and you expect returning a string? wtf is spawnPlayer...

Posted
--Collision shape functions 
createColCircle 
createColCuboid 
createColRectangle 
createColSphere 
createColTube 
createColPolygon 

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...