Jump to content

help me with this scrpit


AnDReJ98

Recommended Posts

hi all :D

this scipt

iam tired to do this

i need when player entered area

he cannt

unbindkey [f2]

when left area

he can

bindkey [f2]

this script

-- Greenzone Pirate Ship 
x, y, size = 1844.5594482422, 1375.3376464844, 120 
local greenzone = createColRectangle ( 1844.5594482422, 1375.3376464844, 284, 312.22 ) 
local greenzonemaparea = createRadarArea (1844.5594482422, 1375.3376464844, 284, 312.22, 0, 255, 0, 120) 
  
function greenzoneEnter ( thePlayer, matchingDimension ) 
if getElementType( thePlayer ) ~= "player" then return end 
outputChatBox ( "* You Entered!", thePlayer, 177, 252, 3 ) 
toggleControl ( thePlayer, "fire", false ) 
toggleControl ( thePlayer, "next_weapon", false ) 
toggleControl ( thePlayer, "previous_weapon", false ) 
setPedWeaponSlot ( thePlayer, 0 ) 
toggleControl ( thePlayer, "aim_weapon", false ) 
toggleControl ( thePlayer, "vehicle_fire", false ) 
toggleControl ( thePlayer, "vehicle_secondary_fire", false ) 
end 
addEventHandler ( "onColShapeHit", greenzone, greenzoneEnter ) 
  
function greenzoneExit ( thePlayer, matchingDimension ) 
if getElementType( thePlayer ) ~= "player" then return end 
outputChatBox ( "* You Left!", thePlayer, 177, 252, 3 ) 
toggleControl ( thePlayer, "fire", true ) 
toggleControl ( thePlayer, "next_weapon", true ) 
toggleControl ( thePlayer, "previous_weapon", true ) 
toggleControl ( thePlayer, "aim_weapon", true ) 
toggleControl ( thePlayer, "vehicle_fire", true ) 
toggleControl ( thePlayer, "vehicle_secondary_fire", true ) 
end 
  
addEventHandler ( "onColShapeLeave", greenzone, greenzoneExit ) 
  
  

plz help me

Link to comment

I am not this person

I'm not the English man

Do you have to speak English fluently?

It's not my language

I speak a little English

It is not important that I lot spoken

I have registered in this forum of interest and benefit the members of what I know

As well as to develop my language

And I thank you with all my heart to help me

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