I have this carnage, but I have a problem is always carnage knife and the hud is deagle says. I mean, nothing ever changes
PHP Code:
public CarnageON(id)
{
if (!g_carnage)
return
switch (g_carnage)
{
case CARNAGE_FAKA:
{
strip_user_weapons(id)
give_item(id, "weapon_knife")
ChatColor(0, "!g%s !gCARNAGE !yKnife.", Prefix)
}
case CARNAGE_DEAGLE:
{
strip_user_weapons(id)
give_item(id, "weapon_knife")
give_item(id, "weapon_deagle")
cs_set_user_bpammo(id, CSW_DEAGLE, 50)
ChatColor(0, "!g%s !gCARNAGE !yDeagle.", Prefix)
}
case CARNAGE_AWP:
{
strip_user_weapons(id)
give_item(id, "weapon_knife")
give_item(id, "weapon_awp")
cs_set_user_bpammo(id, CSW_AWP, 50)
ChatColor(0, "!g%s !gCARNAGE !yAwp.", Prefix)
}
}
}
PHP Code:
public ShowCarnage(taskid)
{
static id
id = ID_CARNAGE
if (is_user_alive(id))
{
set_hudmessage(0, 50, 100, -1.0, 0.06, 1, 1.0, 1.0, 1.0, 1.0)
if (g_carnage)
ShowSyncHudMsg(ID_CARNAGE, MgsSync2, "Modo carnage de: [%s]", CARNAGE[g_carnage])
else
ShowSyncHudMsg(ID_CARNAGE, MgsSync2, "Modo Carnage: falta%s %d ronda%s.", CARNAGE_ROUND - g_rondas > 1 ? "n" : "", CARNAGE_ROUND - g_rondas, CARNAGE_ROUND - g_rondas > 1 ? "s" : "")
}
}
__________________