Raised This Month: $ Target: $400
 0% 

[SOLVED]Help with SyncHud


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 11-01-2009 , 09:18   [SOLVED]Help with SyncHud
Reply With Quote #1

I have a problem with this, works all right, but in the countdown no,show an static hud,like ( " You Will Respawn in 3 seconds" )but dont show 2 - 1,etc....i dont know which is the problem :s

Here I leave the code ...

PHP Code:
//Global
new respawntimer
new delay

#define TASK_HUD    1437

//Init
respawntimer CreateHudSyncObj()
delay register_cvar("amx_respawn_delay","3.0")

//Task
set_task(1.0,"CmdHud",id+TASK_HUD,_,_,"b")

//Function
public CmdHud(id) { 
        
    
id -= TASK_HUD
    
new respawnsegs[33]
    
respawnsegs[id] = get_pcvar_num(delay)
    
    if(
respawnsegs[id] <= 0) {
        
remove_task(id+TASK_HUD)
        
chat_color(id,"!g%s!y Para deshabilitar tu respawn,tipea!team /respawn!y.",szPrefix)
    }
    
    else {
    
set_hudmessage(255255255, -1.00.7906.01.00.10.2)
    
ShowSyncHudMsg(id,respawntimer,"Respawnearas en %d segundo%s",respawnsegs[id],get_pcvar_num(delay) < "" "s")
    }
    
    
respawnsegs[id]--

Thanks! and sorry 4 my bad english

Last edited by #8 SickneSS; 11-01-2009 at 20:50.
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
 



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 17:35.


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