AnDReJ98 Posted October 26, 2011 Share Posted October 26, 2011 hi all 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
Castillo Posted October 26, 2011 Share Posted October 26, 2011 What you are saying makes no sense, and also it looks like because you're tired, you won't do it. Please explain yourself better. Link to comment
AnDReJ98 Posted October 26, 2011 Author Share Posted October 26, 2011 hi i need when player enter greenzones he can not bindkey [f2] _______ when left greenzones he can bindkey [f2] Link to comment
Castillo Posted October 26, 2011 Share Posted October 26, 2011 He can't bind key to what? you can't unbind/bind something without having the function. Link to comment
AnDReJ98 Posted October 26, 2011 Author Share Posted October 26, 2011 the function geenzones area in this area he cannot bind key f2 when left this area he can bind key f2 how to do this plz help me Link to comment
karlis Posted October 26, 2011 Share Posted October 26, 2011 setControlState looks like we have 4th mojrm. Link to comment
AnDReJ98 Posted October 26, 2011 Author Share Posted October 26, 2011 looks like we have 4th mojrm ?????????????? HOW MOJRM???? Link to comment
karlis Posted October 26, 2011 Share Posted October 26, 2011 looks like we have 4th mojrm?????????????? HOW MOJRM???? yep, it just was proven. he wouldn't be that upset otherwise. Link to comment
AnDReJ98 Posted October 26, 2011 Author Share Posted October 26, 2011 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now