Minotaur Posted June 13, 2013 Posted June 13, 2013 I have this script but i doesnt can make it only for the admins please help me setWeaponProperty(32, "pro", "maximum_clip_ammo", 1000)
xXMADEXx Posted June 14, 2013 Posted June 14, 2013 This: addCommandHandler ( "ammo", function ( p ) local account = getAccountName(getPlayerAccount(p)) if(isObjectInACLGroup("user."..account,aclGetGroup("Admin"))) then setWeaponProperty(32, "pro", "maximum_clip_ammo", 1000) end end ) The Ultimate Lua Tutorial! | MTA PHP SDK
Minotaur Posted June 14, 2013 Author Posted June 14, 2013 Thank you . Do you think it work so well? onResourceStart ( "onResourceStart", function ( p ) local account = getAccountName(getPlayerAccount(p)) if(isObjectInACLGroup("user."..account,aclGetGroup("Admin"))) then setWeaponProperty(32, "pro", "maximum_clip_ammo", 1000) end end )
Castillo Posted June 14, 2013 Posted June 14, 2013 You can't set the property just for one player, it's only global. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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