Raised This Month: $ Target: $400
 0% 

Need help with show/set hudmessage.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 09-29-2012 , 05:34   Re: Need help with show/set hudmessage.
Reply With Quote #8

PHP Code:
new g_count 5

// Usage
set_task(1.0"task_respawn_count"id+TASK_RESPAWN_COUNT__"b")

public 
task_respawn_count(taskid)
{
    if (
g_endround)
    {
        
remove_task(taskid)
        return;
    }
    
    if (!
g_count)
    {
        
set_task(1.0"do_respawn")
        
remove_task(taskid)
        return;
    }
    
    new 
message[64]
    
format(messagecharsmax(message), "You Will Respawn After: %i Second(s) !!!"g_count)
    
client_print(taskid-TASK_RESPAWN_COUNTprint_centermessage)
    
    
g_count--


Last edited by dias; 09-29-2012 at 05:35.
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
 



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 08:11.


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