Thank you!
I will try what Hamlet said.
And about this
Quote:
Originally Posted by HamletEagle
Also, what is "iPlayer"? In the forward header you have "id".
|
Changed the code
Solved passing the Weapon Entity index retrieved from player's pdata:
PHP Code:
static wID
wID = get_pdata_cbase(iPlayer, 373, XO_PLAYER)
iClip = cs_get_weapon_ammo(wID);
__________________