AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   bpammo (https://forums.alliedmods.net/showthread.php?t=133032)

zombieplague 07-21-2010 04:53

bpammo
 
is it possible to remove the ammo for scout ?

this is default 10/90

I want it to become 0/0 i already done with the 90. i don't know how to set 10 to 0

Hunter-Digital 07-21-2010 05:30

Re: bpammo
 
Using cs_set_weapon_ammo()

PHP Code:

new ent find_ent_by_owner(-1"weapon_scout"id)

if(
ent)
    
cs_set_weapon_ammo(ent0


zombieplague 07-21-2010 06:47

Re: bpammo
 
Quote:

Originally Posted by Hunter-Digital (Post 1246518)
Using cs_set_weapon_ammo()

PHP Code:

new ent find_ent_by_owner(-1"weapon_scout"id)

if(
ent)
    
cs_set_weapon_ammo(ent0


error: undefined symbol "find_ent_by_ower"

GXLZPGX 07-21-2010 06:53

Re: bpammo
 
Quote:

Originally Posted by zombieplague (Post 1246564)
error: undefined symbol "find_ent_by_ower"

#include <engine>


All times are GMT -4. The time now is 07:05.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.