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)
}
}
}
}
__________________