Jump to content

Need help


zofski

Recommended Posts

hello guys,

It possible to make this fire or there is function to make it, And when player enters to the area and he is not in the team they shot him automatically.

4pMgL.jpg

This is my code : ( client side )

function onResourceStartss() 
    radarZone =  createRadarArea( 8.9, 1709.45, 400, 400, 255, 0, 0, 100 ) 
    RadarCol  =  createColRectangle( 8.9, 1709.45, 400, 400 ) 
    addEventHandler ( "onClientColShapeHit", RadarCol, onHitDangerZone, false ) 
    addEventHandler ( "onClientColShapeLeave", RadarCol, onLeaveDangerZone, false )  
end 
addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()),onResourceStartss) 
  
  
function onLeaveDangerZone() 
outputChatBox("You are leave the danger zone!", 255, 255, 0 ) 
end 
  
function onPlayerHisDangerZone() 
    outputChatBox("You are enter to danger zone please leave it on 60seconds!", 255, 0, 0 ) 
end 

Link to comment

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