Raised This Month: $ Target: $400
 0% 

I have error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Mxnn
Veteran Member
Join Date: Aug 2009
Location: AT MY HOME
Old 08-10-2010 , 22:01   Re: I have error
Reply With Quote #8

This works perfectly:
PHP Code:
public CountDown(id) {
if (
is_user_connected(id)) {
        
set_hudmessage(147147147, -1.00.8116.01.50.20.21)
        
        if (
respawn_counter[id] > 
        
show_hudmessage(id"Finish in %i seconds"respawn_counter[id])
    
        if (
respawn_counter[id] == 0) {
            
// The countdown finish
            
respawn_counter[id] = 5
        
}    
        else {
            
set_task(0.9"CountDown"id)
            
respawn_counter[id]--
        }    
    }
    
    return

Change messages & stuff

respawn_counter[] is a global var with 33 cells (1 for each player)

Last edited by Mxnn; 08-11-2010 at 12:16.
Mxnn 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 00:16.


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