Minotaur Posted June 13, 2013 Share 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) Link to comment
xXMADEXx Posted June 14, 2013 Share 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 ) Link to comment
Minotaur Posted June 14, 2013 Author Share 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 ) Link to comment
Castillo Posted June 14, 2013 Share Posted June 14, 2013 You can't set the property just for one player, it's only global. 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