Hey guys
I've been scripting a SWITCH function which says if the guy is CS_TEAM_CT or not, in the case when he's CT that's the function:
PHP Code:
case CS_TEAM_CT:
{
strip_user_weapons(i)
give_item(i, "weapon_knife")
give_item(i, "weapon_shield")
give_item(i, "weapon_deagle")
set_user_health(i, 100)
cs_set_user_bpammo(i, CSW_DEAGLE, 999)
}
The day is called
Rebel Day and its a day in JailBreak, and the problem is that when we tested it ingame it gave the CT only his knife back and deagle, but NO shield, what could cause this??
HERE is the whole code of that day if it might help you:
PHP Code:
case DAY_GRAV:
{
if(IsPlayer(i) && is_user_alive(i))
{
switch(cs_get_user_team(i))
{
case CS_TEAM_T:
{
set_user_health(i, 300)
}
case CS_TEAM_CT:
{
give_item(i, "weapon_knife")
strip_user_weapons(i)
give_item(i, "weapon_knife")
give_item(i, "weapon_deagle")
give_item(i, "weapon_shield")
set_user_health(i, 100)
cs_set_user_bpammo(i, CSW_DEAGLE, 999)
}
}
}
client_print(0, print_chat, "%s Today is ReBeL day", PREFIX)
//colored_print(1337, "^x04 %s^x03 Today is a Gravity Day!" , PREFIX)
gravityday = true
day_started = true
}