Raised This Month: $ Target: $400
 0% 

Bullets


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 11-20-2013 , 13:59   Bullets
Reply With Quote #1

Am i doing something wrong here?
Im giving people bullets. But some people doesnt get bullets and some people do?
I realy dont now how to fix this

Here is an exemple from my last request

Code:
LR_Paintball( id )
{
	strip_user_weapons( id );
	give_item( id, "weapon_mp5navy" )
	cs_set_user_bpammo(id, CSW_MP5NAVY, 30)
	set_pev(id, pev_viewmodel2, g_szPaintball);
	set_pev(id, pev_weaponmodel2, g_szPaintball2);
	set_task( 0.1, "GiveAmmo", id, _,_, "b" )
						
	message_begin(MSG_ONE_UNRELIABLE, HideWeapon, _, id)
	write_byte(1<<6)
	message_end()
}
Code:
public GiveAmmo( iPlayer )
{
	if( is_user_alive( iPlayer ) )
	{		
		static clip, ammo
		if( g_iCurrentGame == LR_PAINTBALL)		
		{
			get_user_ammo( iPlayer, CSW_MP5NAVY, clip, ammo ) 
			if ( clip <= 0 ) 
			{
				cs_set_user_bpammo(iPlayer, CSW_MP5NAVY, 30)
			}  
		}
	}
}
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
 



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 23:16.


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