Raised This Month: $ Target: $400
 0% 

[SOLVED]Help with SyncHud


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 11-01-2009 , 16:00   Re: Help with SyncHud
Reply With Quote #1

does the same
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
matsi
Thinkosaur
Join Date: Sep 2006
Old 11-01-2009 , 17:40   Re: Help with SyncHud
Reply With Quote #2

Quote:
Originally Posted by #8 SickneSS View Post
does the same
Here:
Code:
#include <amxmodx> #include <amxmisc> #define task_id    1445 new g_iCounter new g_HudSyncObj new p_delay public plugin_init() {     register_plugin( "respawn", "1.0", "matsi")     register_clcmd( "say /respawn", "cmd_respawn" )         p_delay = register_cvar( "amx_respawn_delay", "3" ) } public plugin_cfg() {     g_HudSyncObj = CreateHudSyncObj() } public cmd_respawn( id ) {     if( task_exists( task_id ) )         remove_task( task_id )         g_iCounter = get_pcvar_num( p_delay )         set_task( 1.0, "start_countdown", task_id, _, _, "b" )         return PLUGIN_HANDLED } public start_countdown( id ) {     if( !g_iCounter ) //time is up     {         remove_task( task_id )         set_hudmessage( 255, 255, 255, -1.0, 0.79, 0, 6.0, 1.0, 0.1, 0.2, -1 )         ShowSyncHudMsg( 0, g_HudSyncObj, "You have been respawned" )         //set player to respawn here         return     }         set_hudmessage( 255, 255, 255, -1.0, 0.79, 0, 6.0, 1.0, 0.1, 0.2, -1 )     ShowSyncHudMsg( 0, g_HudSyncObj, "You will respawn in %i second%s", g_iCounter, g_iCounter < 2 ? "" : "s" )         g_iCounter-- }

I didn't really understand what you were doing but this is what i came up with.
matsi is offline
Reply



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