Raised This Month: $ Target: $400
 0% 

set_hudmessage help needed, im clueless


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Indigoism
Junior Member
Join Date: Aug 2014
Old 08-06-2014 , 21:20   set_hudmessage help needed, im clueless
Reply With Quote #1

hello,

I have been working on a cs 1.6 server for the last few days and I pretty much managed to do everything on my own but now I just can't seem to figure it out.

What I'm trying to do is set up a hudmessage for the server but I can't do it. I've read every post and article I could find but no help..

PHP Code:
(set_hudmessage(2552552550.00.1606.012.0)
show_hudmessage(id"Type RTD to take a ^nchance! Press and ^nhold E to use your ^nparachute! Enjoy :)"
This is what came out of amxx studio but I didnt manage to make use of it and now my brain hurts I just want it to show that message so my players know whats going on on the server. If someone can help me with this I would be so happy.

What would be really awesome though if somehow I could allow my players to show / hide the hud message so its not taking up any screen space for them and at this point they have seen the message anyway and don't need to see it anymore!

Thanks in advance!

Last edited by Indigoism; 08-06-2014 at 21:21.
Indigoism is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 08-06-2014 , 21:38   Re: set_hudmessage help needed, im clueless
Reply With Quote #2

When do you want to show the message and how often do you want to show it?
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
Indigoism
Junior Member
Join Date: Aug 2014
Old 08-06-2014 , 21:49   Re: set_hudmessage help needed, im clueless
Reply With Quote #3

I guess it would be nice to have it show right when they join and a couple more times after that with intervals of a few minutes or something.

Last edited by Indigoism; 08-06-2014 at 21:51.
Indigoism is offline
Indigoism
Junior Member
Join Date: Aug 2014
Old 08-07-2014 , 10:57   Re: set_hudmessage help needed, im clueless
Reply With Quote #4

Would this be possible? And if so how?
Indigoism is offline
Shlomi
Junior Member
Join Date: Oct 2013
Old 08-07-2014 , 11:59   Re: set_hudmessage help needed, im clueless
Reply With Quote #5

Code:
/* Plugin generated by AMXX-Studio */

#include < amxmodx >

#define MESSAGE_APPEAR_EVERY 120.0

const TASK_MESSAGE = 1646;

public client_putinserver( id )
	set_task( 2.0, "ShowMessage", id + TASK_MESSAGE );
	
public ShowMessage( TASKID )
{
	set_hudmessage( 255, 255, 255, 0.0, 0.16, 0, 6.0, 12.0 );
	show_hudmessage( TASKID - TASK_MESSAGE, "Type RTD to take a ^nchance! Press and ^nhold E to use your ^nparachute! Enjoy :)" );
	set_task( MESSAGE_APPEAR_EVERY, "ShowMessage", TASKID );
}

public client_disconnect( id )
	remove_task( id + TASK_MESSAGE );
should work.
next time dont double post.
Shlomi is offline
Indigoism
Junior Member
Join Date: Aug 2014
Old 08-07-2014 , 15:34   Re: set_hudmessage help needed, im clueless
Reply With Quote #6

I'm sorry I was just so eager to get this to work on the server because nobody has any idea about those plugins being installed.

I would like to thank you so much for helping me out. Its working perfectly

Kudos
Indigoism 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 13:20.


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