Raised This Month: $ Target: $400
 0% 

set_hudmessage connected with set_task


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
LynX
Veteran Member
Join Date: Oct 2004
Old 03-28-2005 , 16:31   set_hudmessage connected with set_task
Reply With Quote #1

Well, I would like to do this thing. When I set task, I want that hudmessage appears as long as task is running. But, there should be a counter which counts like 15,14,13...3,2,1 untill task finished. How can I do this?
Code is below, alter it please:

Code:
#include <amxmodx> #include <fun> public plugin_init() { register_plugin("Hudmessage with task","dunno","LynX") register_clcmd("hudmessage","hudmessage1") return PLUGIN_HANDLED } public hudmessage1(id) { //I will put some stuff here later set_hudmessage(200,0,0, 0.03, 0.76, 2, 0.02, 1.0, 0.01, 0.1, 2) show_hudmessage(id,"Task finishes in <countdownthinghere> ") set_task(15, "hudmessage2",id) return PLUGIN_HANDLED } public hudmessage2(id) { //I will remove stuff here return PLUGIN_HANDLED }

Thanks.

LynX
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
 



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 09:51.


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