Raised This Month: $ Target: $400
 0% 

Set Weapon Clip and BP ammo


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Roccoxx
AlliedModders Donor
Join Date: Jan 2012
Location: Argentina
Old 06-27-2014 , 23:58   Set Weapon Clip and BP ammo
Reply With Quote #1

hi i have a dude, how i can set in my deagle 1/0 ammo

y have this code:

PHP Code:
new wpn GetPlayerWeaponSlot(client1);
RemovePlayerItem(clientwpn);
RemoveEdict(wpn);
GivePlayerItem(client"weapon_deagle"); 
exists a native equal to cs_set_user_bpammo? where ?

sorry for my bad english :S

thanks for read
__________________
Tutorials here (Spanish)

Like as another Pijudo said: "Tired and retired"
Roccoxx is offline
Send a message via MSN to Roccoxx
Roccoxx
AlliedModders Donor
Join Date: Jan 2012
Location: Argentina
Old 06-29-2014 , 00:24   Re: Set Weapon Clip and BP ammo
Reply With Quote #2

i have this:
PHP Code:
case 15:{
            
Client_RemoveAllWeapons(client"weapon_knife"true);
            
GivePlayerItem(client"weapon_deagle")
            
            
Client_SetWeaponClipAmmo(client"weapon_deagle"4);
            
Client_SetWeaponPlayerAmmo(client"weapon_deagle"5);
            
//Client_GiveWeaponAndAmmo(client, "weapon_deagle", false, 0)
            //Client_GiveWeaponAndAmmo(client, "weapon_deagle", true, 7, -1, 8, -1)
        

i try all forms but not works, look coment "//" lines :S
__________________
Tutorials here (Spanish)

Like as another Pijudo said: "Tired and retired"

Last edited by Roccoxx; 06-29-2014 at 00:24.
Roccoxx is offline
Send a message via MSN to Roccoxx
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 06-29-2014 , 04:00   Re: Set Weapon Clip and BP ammo
Reply With Quote #3

Did you try setting clip and ammo on a timer after giving weapon?
h3bus is offline
Roccoxx
AlliedModders Donor
Join Date: Jan 2012
Location: Argentina
Old 06-29-2014 , 15:37   Re: Set Weapon Clip and BP ammo
Reply With Quote #4

sorry, i post this in source servers xD, move to scripting help pls.

yes i try but not works D:
__________________
Tutorials here (Spanish)

Like as another Pijudo said: "Tired and retired"
Roccoxx is offline
Send a message via MSN to Roccoxx
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 20:27.


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