Raised This Month: $51 Target: $400
 12% 

(req) help me with this


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
bazhenov93
Veteran Member
Join Date: Oct 2010
Old 03-15-2012 , 12:35   (req) help me with this
Reply With Quote #1

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( ( 
pevidpev_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(idpev_flagspev(idpev_flags) | FL_FROZEN)
pev(idpev_originPauseOrigin[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(idpev_flagspev(idpev_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?

Last edited by bazhenov93; 03-15-2012 at 14:24.
bazhenov93 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:53.


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