Jump to content

Any scripts on a secure zone


Recommended Posts

Posted

Does any body have a script like if a regular user enters the area it kills them or spawn them some were else please i really need one and if you do find one can you tell me how to find the size of the area.

Posted

createColSphere 
"onColShapeHit" -- event 
getPlayerTeam 
outputChatBox 
else 
killPed or spawnPlayer 

or easier

createMarker 
"onMarkerHit" -- event 
getPlayerTeam 
outputChatBox 
else 
killPed or spawnPlayer 
Posted

Unbelievable... You just copied the functions above. You don't have just paste these functions, you have to make a script using them!

Posted

Ok so if you guys are suposed to be helping me how about breaking it down to basic to help me

erase "get player team" and put the x position coordinates or leave it and type = what ever the x postion coordinate is?

Posted
Ok so if you guys are suposed to be helping me how about breaking it down to basic to help me

erase "get player team" and put the x position coordinates or leave it and type = what ever the x postion coordinate is?

Without getPlayerTeam anyone can enter the place you want

Posted
Ok explain everything for me please juste xplain all for it to work i need it to work at the doherty sf garage

this explain everything

local marker = createMarker ( x, y, z, "cylinder", 1.5, 255, 0, 0, 170 ) 
  
addEventHandler( "onMarkerHit", 
function ( player ) 
local PlayerTeam = getPlayerTeam ( player ) 
local Team = getTeamFromName ( "staff" ) 
    if playerTeam == Team then 
    outputChatBox ( "* welcome Staff ", player, 255, 0, 0) 
    else 
    killPed(player) 
    end 
end 
) 

# Replace

1- x, y ,x == the position for the area

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