Quote:
Originally Posted by ConnorMcLeod
I don't know, try it.
Also, client_cmd is usually a poor way for that kind of stuff, would be better to force IN_ATTACK button in CmdStart , or in PostThink.
|
The problem is that I don't know how to get ammo number in this function.
I think need to use get_pdata_int() or something like that, but question in offsets...
UPD, DONE:
PHP Code:
new amm = get_pdata_int(iPISTOL, 51);
if(amm == 10)
{
set_pdata_int(iPISTOL, 51, 20);
}