Flipi Posted August 20, 2013 Share Posted August 20, 2013 make script it only for admins? (sorry my bad english ) function CheatMode(commandName,command) if command=='air' then if not isWorldSpecialPropertyEnabled('aircars') then setWorldSpecialPropertyEnabled('aircars',true) outputChatBox('aircars on') else setWorldSpecialPropertyEnabled('aircars',false) outputChatBox('aircars off') end elseif command=='water' then if not isWorldSpecialPropertyEnabled('hovercars') then setWorldSpecialPropertyEnabled('hovercars',true) outputChatBox('hovercars on') else setWorldSpecialPropertyEnabled('hovercars',false) outputChatBox('hovercars off') end elseif command=='bike' then if not isWorldSpecialPropertyEnabled('extrabunny') then setWorldSpecialPropertyEnabled('extrabunny',true) outputChatBox('extrabunny on') else setWorldSpecialPropertyEnabled('extrabunny',false) outputChatBox('extrabunny off') end elseif command=='jump' then if not isWorldSpecialPropertyEnabled('extrajump') then setWorldSpecialPropertyEnabled('extrajump',true) outputChatBox('extrajump on') else setWorldSpecialPropertyEnabled('extrajump',false) outputChatBox('extrajump off') end else outputChatBox('water, bike, jump, air') end end addCommandHandler('cheat', CheatMode,false) Link to comment
Castillo Posted August 20, 2013 Share Posted August 20, 2013 You'll have to make part of it server side. Use this functions server side and trigger to client to enable/disable: getPlayerAccount getAccountName isObjectInACLGroup 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