Raised This Month: $ Target: $400
 0% 

Time BAR


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Veggetta
Member
Join Date: Mar 2008
Location: Portugal
Old 07-07-2012 , 20:43   Time BAR
Reply With Quote #1

Hello everybody!

Today my question is, how do do a timebar like when defusing, in this code:

PHP Code:
public blabla(id)
    
set_task(15.0"TimeBar"id);

// From the set_task to TimeBar, what do i do to show a timebar on the screen, like defusing?
public TimeBar(id)
    
set_user_health(id100); 

Last edited by Veggetta; 07-07-2012 at 20:45.
Veggetta is offline
Y060N
BANNED
Join Date: Dec 2011
Location: www.equilibriumcs.com
Old 07-07-2012 , 21:07   Re: Time BAR
Reply With Quote #2

PHP Code:
new g_iBarTime

public plugin_init()
{
    
g_iBarTime get_user_msgid("BarTime"
}

public 
blabla(id)
{
    
set_task(15.0"TimeBar"id);
    
Make_BarTime(id15)
}

Make_BarTime(idiSeconds

    
message_begin(MSG_ONE_UNRELIABLEg_iBarTime, .player=id)
    
write_short(iSeconds)
    
message_end()
}

public 
TimeBar(id)
    
set_user_health(id100); 
Y060N is offline
Veggetta
Member
Join Date: Mar 2008
Location: Portugal
Old 07-07-2012 , 21:09   Re: Time BAR
Reply With Quote #3

Quote:
Originally Posted by Y060N View Post
PHP Code:
new g_iBarTime

public plugin_init()
{
    
g_iBarTime get_user_msgid("BarTime"
}

public 
blabla(id)
{
    
set_task(15.0"TimeBar"id);
    
Make_BarTime(id15)
}

Make_BarTime(idiSeconds

    
message_begin(MSG_ONE_UNRELIABLEg_iBarTime, .player=id)
    
write_short(iSeconds)
    
message_end()
}

public 
TimeBar(id)
    
set_user_health(id100); 
Thank you, i give it a try
Veggetta is offline
Reply


Thread Tools
Display Modes

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 15:12.


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