Raised This Month: $ Target: $400
 0% 

show hud forever


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iCap
BANNED
Join Date: Oct 2007
Old 10-08-2007 , 06:43   show hud forever
Reply With Quote #1

is this possible? im new to coding and i stormed up an idea and it needs to have the hud message show up forever, can anyone give me an example?

thanks in advance!
iCap is offline
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 10-08-2007 , 07:00   Re: show hud forever
Reply With Quote #2

Tricky.

It may just be possible to hook the show_hudmessage, and in that you could check the channel - if it's the same as you're displaying on, and not the same text, display yours instead.

And probably set a task to show it again once it dissappears ...

I don't really know hud messages. Just a suggestion.
purple_pixie is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 10-08-2007 , 08:22   Re: show hud forever
Reply With Quote #3

All you can do is to set a task! make the hudmessage stay 5 sec and set task after 5 sec to show hudmessage again.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
alien
Senior Member
Join Date: Aug 2005
Location: London || Slovakia
Old 10-09-2007 , 09:38   Re: show hud forever
Reply With Quote #4

This will show your message to everyone and it will stay. It's also quite useful to have it like this. Imagine situation where you want to change the message. You just set it up according to some values and it will reappear changed in few seconds.

PHP Code:
public plugin_init()
  {
    ...
    
set_task(5.0"neverending_hud_message"1234""0"b");

    
// 1234 is a task code - you can use it to stop task from executing or find-out whether it exists etc.
    
...
  }



public 
neverending_hud_message()
  {
    
set_hudmessage(128128128, -1.00.5000.05.10.00.51);
    
show_hudmessage(0"I love you and want to stay on your screen forever!");
    return 
PLUGIN_CONTINUE;
  } 
__________________
alien is offline
Send a message via ICQ to alien
Podunk
Senior Member
Join Date: Nov 2005
Location: Florida
Old 10-09-2007 , 17:05   Re: show hud forever
Reply With Quote #5

I found menu's work too and you can multicolor different parts of the same call
__________________
Check out my website at http://matthewmiller.info
Podunk is offline
Send a message via MSN to Podunk
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 16:08.


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