don't know if i already created this some days ago, but could find it, so maybe no or i posted in incorrect section and it was deleted.
this image was taken not on my server, I talked with the coder, but he don't want give the code.. so maybe one of you know how to do it
when you type /pause, the screen turn in blue colour
and when you type /pause again, the screen back to normal..
PHP Code:
public Pause(id)
{
if (get_pcvar_num(kz_pause) == 0)
{
kz_hud_message(id, "Pause is disabled")
return PLUGIN_HANDLED
}
if(! timer_started[id])
{
kz_hud_message(id, "Timer is not started")
return PLUGIN_HANDLED
}
if(! is_user_alive(id) )
{
kz_hud_message(id, "You must be alive to use this command")
return PLUGIN_HANDLED
}
if( ( pev( id, pev_flags ) & FL_ONGROUND2 ) )
{
if(!IsPaused[id])
{
g_pausetime[id] = get_gametime() - timer_time[id]
timer_time[id] = 0.0
IsPaused[id] = true
kz_hud_message(id, "Your timer has been paused")
set_pev(id, pev_flags, pev(id, pev_flags) | FL_FROZEN)
pev(id, pev_origin, PauseOrigin[id])
}
else
{
timer_time[id] = get_gametime() - g_pausetime[id] + timer_time[id]
IsPaused[id] = false
kz_hud_message(id, "Your timer has been unpaused")
set_pev(id, pev_flags, pev(id, pev_flags) & ~FL_FROZEN)
}
}
else
kz_hud_message(id, "You must be on ground to get paused")
return PLUGIN_HANDLED
}
what I need add to make this screen?