PDA

View Full Version : Oh No Zor!


Wilson [29th ID]
09-01-2006, 05:23 PM
dod_set_user_ammo(id, weapon, ammo)

I just realised that this allows weapons to reload "CS style" - if you shoot off four bullets in a magazine and reload, you don't lose the rest of that magazine - it gets "stored."

Perhaps it's just me? Or are others experiencing this too? How can I get around this?

Here's my code.
public set_ammo(id,weapon,channel,ammo) {
dod_set_user_ammo(id, weapon, ammo)
// Update user's HUD
message_begin(MSG_ONE,get_user_msgid("AmmoX"),{0,0,0},id);
write_byte(channel);
write_byte(ammo);
message_end();

return PLUGIN_CONTINUE
}

Zor
09-01-2006, 05:27 PM
Dont know, not sure if I used that one before!

Cheers!