-Doc- Posted June 27, 2015 Share Posted June 27, 2015 Hi. How its possible in green zone to allow some weapons like flowers,dildo..? Link to comment
Bilal135 Posted June 27, 2015 Share Posted June 27, 2015 You must edit your green zone resource for that. Link to comment
-Doc- Posted June 27, 2015 Author Share Posted June 27, 2015 OMG go away from my topics Link to comment
KariiiM Posted June 27, 2015 Share Posted June 27, 2015 Hello there,i didn't understand your system well Do you mean,if a player entered the GreenZone his ammo will be not working but the "dildo" ,"Flowers" ammo will works? Link to comment
KariiiM Posted June 27, 2015 Share Posted June 27, 2015 Here i scripted a code about what you're wanted for it's server side so add a meta like that Server.lua (Server side) local GreenZone = createColRectangle ( ) --Put your Greenzone pos plus Size of it. Example:(x,z,255,130) local Radar = createRadarArea () -- Put greenzone (pos plus Size,Color of Zone,Alpha) function zoneEnter ( thePlayer, matchingDimension ) if matchingDimension and isElement(thePlayer) and getElementType(thePlayer) == "player" then triggerClientEvent(thePlayer, "zoneEnter", thePlayer) getPedWeapon(localPlayer) == 11 then getPedWeapon(localPlayer) == 14 then toggleControl ( thePlayer, "fire", false ) toggleControl ( thePlayer, "next_weapon", false ) toggleControl ( thePlayer, "previous_weapon", false ) outputChatBox( "You've entered to the greenzone,you can use only Dildo and Flowers.",thePlayer, 255,0,0) end end addEventHandler ( "onColShapeHit", GreenZone, zoneEnter ) function zoneExit ( thePlayer, matchingDimension ) if matchingDimension and isElement(thePlayer) and getElementType(thePlayer) == "player" then triggerClientEvent(thePlayer, "zoneExit", thePlayer) toggleControl ( thePlayer, "fire", true ) toggleControl ( thePlayer, "next_weapon", true ) toggleControl ( thePlayer, "previous_weapon", true ) outputChatBox ( "You've left the greenzone,now all your ammos will works.",thePlayer,255,0,0) end end addEventHandler ( "onColShapeLeave", GreenZone,zoneExit ) 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