Raised This Month: $ Target: $400
 0% 

[SOLVED] Setting weapon ammo...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 04-26-2007 , 14:35   Re: Setting weapon ammo...
Reply With Quote #4

No.

Not player index. Each weapon a player has a specific entity index.

Usage for engine you would do
Code:
new WeapEntIndex = find_ent_by_owner(-1, "weapon_awp", player[i], 0); if(is_ent_valid(WeapEntIndex)) {     cs_set_weapon_ammo(WeapEntIndex, 3); }
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
 



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 06:38.


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