AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Weapon's second ammo (https://forums.alliedmods.net/showthread.php?t=117946)

KadiR 02-06-2010 12:57

Weapon's second ammo
 
I would say that this already exists somewhere, but coudln't find it. My question is, I have this in my code:

PHP Code:

give_item(id,"weapon_deagle"); 

So it should give the player a deagle. I thought that both magazines are empty, but it was 7 | 0 . How can I change it simple to 0 | 0 ?

Seta00 02-06-2010 13:02

Re: Weapon's second ammo
 
PHP Code:

new weaponId give_weapon(id"weapon_deagle"); // returns the weapon id
set_weapon_ammo(weaponId0); // sets loaded ammo to 0 


Arkshine 02-06-2010 13:13

Re: Weapon's second ammo
 
Kadir, please search before posting. Each time you ask basics questions where answers can be found very easily : http://www.amxmodx.org/funcwiki.php?go=func&id=186

KadiR 02-06-2010 13:21

Re: Weapon's second ammo
 
Quote:

Originally Posted by Arkshine (Post 1080484)
Kadir, please search before posting. Each time you ask basics questions where answers can be found very easily : http://www.amxmodx.org/funcwiki.php?go=func&id=186

Quote:

I would say that this already exists somewhere, but coudln't find it
+ I also didn't thought about looking into the cstrike module. I was searching in the fun one..:oops:

minimiller 02-06-2010 13:55

Re: Weapon's second ammo
 
fyi, its easier to search for keywords rather than searching module by module

http://www.amxmodx.org/funcwiki.php?...ammo&go=search


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

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