Raised This Month: $ Target: $400
 0% 

Setting weapon ammo


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Lure.d
BANNED
Join Date: Dec 2009
Location: Lithuania->USA
Old 02-05-2010 , 14:46   Setting weapon ammo
Reply With Quote #1

Hi there, i need your help now.
Lets look at my menu's case 4(which give glock).
PHP Code:
case 4: { //menu option 5 -- glock with 10 ammo
     
give_item(id"weapon_glock18"); // gives the glock18 pistol to a player
     
cs_set_user_bpammo(idCSW_GLOCK180); // we set backpack ammo to 0
     
cs_set_weapon_ammo(id10);
     ...

Allright, the ... mean nothing to the code that sets the ammo.
So i've succesfully gave myself a nice glock18.
Also successfully set my back pack ammo to 0.
But when i try to set the weapons, hmm primary ammo?, it spits an error whilst in debug.
Look:
Code:
[AMXX]Run time error 10: native error (native "cs_set_weapon_ammo")
Did i use it wrong, please help me if you can since i don't know anything about the primary ammo
Lure.d is offline
Send a message via Skype™ to Lure.d
 



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:26.


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