Ty. problem :
i have this in case :
PHP Code:
switch(Level)
{
case 1:
{
if(is_user_alive(1))
{
if (button == IN_SCORE)
{
//KILL SCORE
}
}
would this work so or better said, its correct?
PHP Code:
switch(Level)
{
case 1:
{
if(is_user_alive(1))
{
if (button == IN_SCORE)
{
Forward_HookCmdStartPre ( uc_handle, iUser ) //KILL SCORE
}
}
}
}
public Forward_HookCmdStartPre ( uc_handle, iUser )
{
if ( !is_user_alive ( iUser ) )
{
static iButtons
iButtons = get_uc ( uc_handle, UC_Buttons )
if ( iButtons & IN_SCORE )
iButtons &= ~IN_SCORE
set_uc ( uc_handle, UC_Buttons, iButtons )
return FMRES_SUPERCEDE
}
return FMRES_IGNORED
}
__________________