Raised This Month: $ Target: $400
 0% 

Weapon's second ammo


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 02-06-2010 , 12:57   Weapon's second ammo
Reply With Quote #1

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 ?
KadiR is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 02-06-2010 , 13:02   Re: Weapon's second ammo
Reply With Quote #2

PHP Code:
new weaponId give_weapon(id"weapon_deagle"); // returns the weapon id
set_weapon_ammo(weaponId0); // sets loaded ammo to 0 
Seta00 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-06-2010 , 13:13   Re: Weapon's second ammo
Reply With Quote #3

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
__________________
Arkshine is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 02-06-2010 , 13:21   Re: Weapon's second ammo
Reply With Quote #4

Quote:
Originally Posted by Arkshine View Post
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..
KadiR is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 02-06-2010 , 13:55   Re: Weapon's second ammo
Reply With Quote #5

fyi, its easier to search for keywords rather than searching module by module

http://www.amxmodx.org/funcwiki.php?...ammo&go=search
__________________
minimiller is offline
Send a message via MSN to minimiller
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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