View Single Post
rubee
Senior Member
Join Date: Oct 2009
Location: party rocking
Old 12-29-2009 , 19:19   Re: [Zp] Ayuda Con Un Menu :(
#5

lo que yo encontre:

1- lo que te dijo apuu
2- falto una llave y separaste parte del code del spec
PHP Code:
        case 5// Join Spectator
        
{
            
// If alive
            
if (is_user_alive(id))
            {
                
// Check that we still have both humans and zombies to keep the round going
                
check_round(id)
                
                
// Kill him before he switches team
                
dllfunc(DLLFunc_ClientKillid)
            }
            
        case 
7// Mute Menu
        
{
            
console_cmdid"say /mute"
        }    
            
            
// Temporarily save player stats?
            
if (get_pcvar_num(cvar_statssave)) save_stats(id)
            
            
// Remove previous tasks
            
remove_task(id+TASK_TEAM)
            
remove_task(id+TASK_MODEL)
            
remove_task(id+TASK_FLASH)
            
remove_task(id+TASK_CHARGE)
            
remove_task(id+TASK_SPAWN)
            
remove_task(id+TASK_BLOOD)
            
            
// Then move him to the spectator team
            
fm_set_user_team(idCS_TEAM_SPECTATOR)
            
fm_set_user_team_msg(id+TASK_TEAM)
        } 
-->

PHP Code:
        case 5// Join Spectator
        
{
            
// If alive
            
if (is_user_alive(id))
            {
                
// Check that we still have both humans and zombies to keep the round going
                
check_round(id)
                
                
// Kill him before he switches team
                
dllfunc(DLLFunc_ClientKillid)
            }
            
// Temporarily save player stats?
            
if (get_pcvar_num(cvar_statssave)) save_stats(id)
            
            
// Remove previous tasks
            
remove_task(id+TASK_TEAM)
            
remove_task(id+TASK_MODEL)
            
remove_task(id+TASK_FLASH)
            
remove_task(id+TASK_CHARGE)
            
remove_task(id+TASK_SPAWN)
            
remove_task(id+TASK_BLOOD)
            
            
// Then move him to the spectator team
            
fm_set_user_team(idCS_TEAM_SPECTATOR)
            
fm_set_user_team_msg(id+TASK_TEAM)
        }
        case 
7// Mute Menu
        
{
            
console_cmdid"say /mute"
        }  
        case 
8// Admin Menu 
3- Agregale un return debajo de la linea 3777

PHP Code:
    }

-->
PHP Code:
    }
    return 
PLUGIN_HANDLED

es lo que encontre xD
__________________


rubee is offline