setting ammo when reloading
Code:
#include<amxmodx> |
ya, your public reload() function never gets called..
what are you trying to do? |
trying to set ammo to 0 when they press reload
|
easy
I would use client_PreThink, like this:
Code:
|
Code:
#include<amxmodx> |
you never call the function,thats why it doesn't work...
|
client_PreThink() is an AMXX forward, so it gets called by AMXX..
But, that's not the problem, the problem is: cs_set_weapon_ammo(clip, 0) The first parameter should not be the clip, but the user index.. from cstrike.inc: native cs_set_weapon_ammo(index, newammo); |
so will work?
Code:
|
Wrong...
cs_set_weapon_ammo(id,ammo) this id is not user id, this the weapon's id below is an example Code:
|
Yes, cheap_suit, the most recent code you posted should work. Larnk's will give you a plethora of warnings and errors.
|
| All times are GMT -4. The time now is 14:07. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.