AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Help] Carnage round (https://forums.alliedmods.net/showthread.php?t=225081)

wEEk 08-31-2013 15:05

[Help] Carnage round
 
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(idCSW_DEAGLE50)
            
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(idCSW_AWP50)
            
ChatColor(0"!g%s !gCARNAGE !yAwp."Prefix)
        }
    }


PHP Code:

public ShowCarnage(taskid)
{
    static 
id
    id 
ID_CARNAGE
    
    
if (is_user_alive(id)) 
    {
        
        
set_hudmessage(050100, -1.00.0611.01.01.01.0)
        if (
g_carnage)
                 
ShowSyncHudMsg(ID_CARNAGEMgsSync2"Modo carnage de: [%s]"CARNAGE[g_carnage])
        else
            
ShowSyncHudMsg(ID_CARNAGEMgsSync2"Modo Carnage: falta%s %d ronda%s."CARNAGE_ROUND g_rondas "n" ""CARNAGE_ROUND g_rondasCARNAGE_ROUND g_rondas "s" "")
    }




All times are GMT -4. The time now is 18:46.

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