[IMG]http://img828.**************/img828/4926/originalimg.png[/IMG]
yes, its for a custom weapon.
Heres the example
Code:
public do_specialday(id)
{
.....
case DAY_TSHLD:
{
if(IsPlayer(i) && is_user_alive(i))
{
switch(cs_get_user_team(i))
{
case CS_TEAM_T:
{
strip_weapons(i)
give_item(i, "weapon_deagle")
give_item(i, "weapon_shield")
cs_set_user_bpammo(i, CSW_DEAGLE, 35)
if(!(pev(i, pev_flags) & FL_FROZEN))
{
client_print(i, print_center, "Jus buvote sustingdytas 6 sekundems!");
freeze = true
set_pev(i, pev_flags, (pev(i, pev_flags) | FL_FROZEN));
set_task(7.0, "unfreeze", TASK_unfreeze + id)
}
}
case CS_TEAM_CT:
{
strip_weapons(i)
give_item(i, "weapon_deagle")
give_item(i, "weapon_m4a1")
cs_set_user_bpammo(i, CSW_DEAGLE, 35)
cs_set_user_bpammo(i, CSW_M4A1, 90)
}
}
}
set_hudmessage(0, 85, 255, -1.0, 0.26, 0, 6.0, 6.0)
show_hudmessage(0, "%s pradejo Terrorist Shield diena! Priziuretojai turi 6s pabegimui! Siuo metu zudyti negalima!", name)
set_task(7.0, "specdaytxtprad", id)
jail_open()
}
.....
}
I want those given guns to have unlimited ammo but only when CASE_TSHLD is active..