MannPro Posted June 11, 2014 Posted June 11, 2014 Hey guys, I made a group of government in acl. How can i check if they are in government on startup? And i made a base how can i make a gate which only opens when a guy of government goes near it and closes automatically? Thanks...
MIKI785 Posted June 11, 2014 Posted June 11, 2014 Use this: if isObjectInACLGroup(player, aclGetGroup("Government")) then Whenever you want to restrict something.. player being the player checked. Lua Scripter Owner of mshost.cz MTA portal.
MannPro Posted June 12, 2014 Author Posted June 12, 2014 Use this: if isObjectInACLGroup(player, aclGetGroup("Government")) then Whenever you want to restrict something.. player being the player checked. Can you give me full code? Like this? function aclGetGroup ("Government",player) if isObjectInACLGroup(player, aclGetGroup("Government")) then
ViRuZGamiing Posted June 12, 2014 Posted June 12, 2014 after that you'll need; gate = createObject(gateid, etc.) moveObject(gate, etc.) and perhaps else outputChatbox("you're not in the government", thePlayer) "If debugging is the process of removing software bugs, then programming must be the process of putting them in."
MannPro Posted June 13, 2014 Author Posted June 13, 2014 Can you give the full code as how to make a gate working?
Max+ Posted June 13, 2014 Posted June 13, 2014 it's Really Simple . . . , local Object = createObject ( X ,Y ,Z ,0 ,0 ,0 ) --- your object local Marker = createMarker ( X ,Y ,Z ,"cylinder",5 , 170 ) --- your Marker function OpenObject ( player ) if isElementWithinMarker ( player, Marker ) then --- if player in the marker then local accName = getAccountName ( getPlayerAccount ( player ) ) --- get his account if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Government" ) ) then --- if he is on ACL Government then moveObject ( Object,140.19999694824 ,198.4000244141 ,15.10000038147 ) --- open else moveObject ( Object,136.19999694824 ,1942.4000244141 ,21.10000038147 ) --- close end else outputChatBox ( "* You must be Government to do this ", player, 200, 0, 0, true ) --- Msg end end addCommandHandler('open', openObject ) --- Command in f8 open - New , Kill System - New, GameMode Intro - Leve / Exp System - New nametag showing style - New , Hud For Players - Skin Selection from SA-MP - Money System / Buy Weapons - Drop Weapons - New, Flood System - New , Group Assign - Gun license For Weapons - Random Rule System For Money
MannPro Posted June 14, 2014 Author Posted June 14, 2014 Is it necessary to create a marker at gate? It would be better without it
Max+ Posted June 14, 2014 Posted June 14, 2014 Is it necessary to create a marker at gate? It would be better without it well i never try using this script , but as you wish . .. , - New , Kill System - New, GameMode Intro - Leve / Exp System - New nametag showing style - New , Hud For Players - Skin Selection from SA-MP - Money System / Buy Weapons - Drop Weapons - New, Flood System - New , Group Assign - Gun license For Weapons - Random Rule System For Money
Karuzo Posted June 14, 2014 Posted June 14, 2014 You can just set the alpha to 0 of the marker if you dont want to see the marker.
MannPro Posted June 14, 2014 Author Posted June 14, 2014 You can just set the alpha to 0 of the marker if you dont want to see the marker. Nice idea!
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