Xwad Posted May 31, 2016 Share Posted May 31, 2016 Is it possible to add more maximum_clip_ammo property for a weapon? i want to make that if the player has skin id 10 then his m4 maximum_clip_ammo will be 30 and if the players has skin id 11 then the maximum_clip_ammo will be 50. is this possible? thx Link to comment
ViRuZGamiing Posted May 31, 2016 Share Posted May 31, 2016 use setWeaponProperty clientside Link to comment
Castillo Posted May 31, 2016 Share Posted May 31, 2016 You can't set custom weapon properties for each player. Link to comment
#RooTs Posted June 1, 2016 Share Posted June 1, 2016 You can't set custom weapon properties for each player. even if I separate into a group in the ACL? EX: if ( isObjectInACLGroup ( "user.".. getAccountName ( account ), aclGetGroup ( "VIP" ) ) ) then setWeaponProperty(23, "pro", "maximum_clip_ammo", 600) else setWeaponProperty(23, "pro", "maximum_clip_ammo", 34) end Link to comment
KariiiM Posted June 1, 2016 Share Posted June 1, 2016 setWeaponProperty is a global function, you can't even specify which player you want to set for him/her the properties, it works for weapons only. Link to comment
Xwad Posted June 1, 2016 Author Share Posted June 1, 2016 But i mean: if player has skon id 10 then his m4 in his hamd will have 30 clip ammo, but if the player has skin id 11 then his m4 will have 40 clip ammo Link to comment
Castillo Posted June 1, 2016 Share Posted June 1, 2016 You can't set custom weapon properties for each player. even if I separate into a group in the ACL? EX: if ( isObjectInACLGroup ( "user.".. getAccountName ( account ), aclGetGroup ( "VIP" ) ) ) then setWeaponProperty(23, "pro", "maximum_clip_ammo", 600) else setWeaponProperty(23, "pro", "maximum_clip_ammo", 34) end This doesn't make any sense, can't you see that both would overwrite eachother? Link to comment
#RooTs Posted June 1, 2016 Share Posted June 1, 2016 This doesn't make any sense, can't you see that both would overwrite eachother? more, work in group by ACL ? Link to comment
Xwad Posted June 10, 2016 Author Share Posted June 10, 2016 and if i use different skill levels? poor, std, pro??! Link to comment
KariiiM Posted June 10, 2016 Share Posted June 10, 2016 and if i use different skill levels? poor, std, pro??! That also won't make what you're trying to do Link to comment
Xwad Posted June 11, 2016 Author Share Posted June 11, 2016 Why? If the player has std level then his weapon will have 20 ammo in the mag and if the player has pro level then he will have 30 ammo in mag Link to comment
Xwad Posted June 11, 2016 Author Share Posted June 11, 2016 And i use setPedStat to set the level. Os that not possible? 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