Jump to content

maximum_clip_ammo help


Xwad

Recommended Posts

Posted

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

Posted
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 

Posted

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.

Posted

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

Posted
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?

  • 2 weeks later...
Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...