[SOLVED] Setting weapon ammo...
Ok I have everything just fine...but for some reason when I use this code.
Code:
For some unknown reason it gives the awp 10 bullets...or the p228 a full chamber and none in the clip...I want just 3 bullets for awp... what am I doing wrong ? |
Re: Setting weapon ammo...
cs_set_weapon_ammo requires the Weapon Entity Index. Not the Weapon Id Constant.
So your going to have to find the entity by owner. Ie .. "weapon_awp". Then use that Weapon Entity Index. |
Re: Setting weapon ammo...
so if i did something like this ?
Code:
|
Re: Setting weapon ammo...
No.
Not player index. Each weapon a player has a specific entity index. Usage for engine you would do Code:
|
Re: Setting weapon ammo...
just a bit of a problem
Code:
/home/groups/amxmodx/tmp3/phpKRstlI.sma(599) : error 017: undefined symbol "is_ent_valid" |
Re: Setting weapon ammo...
change that to is_valid_ent
|
Re: Setting weapon ammo...
OK I have this and it works...some of the time...
Code:
|
Re: Setting weapon ammo...
It possible you need to delay the setting weapon clip ammo because of the player hasn't gotten the weapon yet.
|
Re: Setting weapon ammo...
OK i changed it to this...and it wont change the bullets...still gives 10
Code:
|
Re: Setting weapon ammo...
ok...i see what you mean, so just insert a wait...or some sort of pause
|
| All times are GMT -4. The time now is 06:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.