AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Showing/hiding motd (https://forums.alliedmods.net/showthread.php?t=82797)

GoGoGo 12-30-2008 04:30

Showing/hiding motd
 
Hi,

Is it possible to show my motd so fast that the player won't saw it? (Show motd and hide it in the same time)

SnoW 12-30-2008 05:25

Re: Showing/hiding motd
 
First I gotta say that Why would you do this? What's the idea if the user can't even see it?
It could be done, first showing the motd where is your thingys and then show other motd wheres nothing. Still there isn't way to make user close the motd. (Please, some one correct me if I'm wrong)

GoGoGo 12-30-2008 06:02

Re: Showing/hiding motd
 
Quote:

----part of code---

len += formatex(a[len], charsmax(a) - len, "lalala^n")
len += formatex(a[len], charsmax(a) - len, "lalala^n")

show_motd(id, a, "sth")
//exec user enter

------next----
Is it possible to exec enter to user, enter is closing the motd?

client_cmd(id,"+attack") - is not working.

SnoW 12-30-2008 06:49

Re: Showing/hiding motd
 
Part of hlsdk const:
Code:

#define IN_ATTACK                      (1<<0)
#define IN_JUMP                        (1<<1)
#define IN_DUCK                        (1<<2)
#define IN_ATTACK2                      (1<<11)
#define IN_SCORE                        (1<<15)

You can detect when client is jumping, also make him jump. But you can't make him press any button or detect it. That's because client can bind his jump to the mouse1 if he wants. That goes to client side and we are not allowed to and we can't do it.

GoGoGo 12-30-2008 06:56

Re: Showing/hiding motd
 
So it is inpossible to make quick hide of motd?

SnoW 12-30-2008 07:04

Re: Showing/hiding motd
 
Quote:

Originally Posted by SnoW (Post 735403)
Still there isn't way to make user close the motd.

I thought it and I'm thinking like it right now :)

IneedHelp 12-30-2008 13:12

Re: Showing/hiding motd
 
It's impossible what you want GoGoGo but you can hide the motd blocking the msg ^.^

Hawk552 12-30-2008 14:28

Re: Showing/hiding motd
 
If you're trying to show a short message, just show a HUD message with a very short life time.

GoGoGo 01-01-2009 14:13

Re: Showing/hiding motd
 
No No No I was thinking about playing mp3 (at round end) without downloading it, it is possible only by making motd.


All times are GMT -4. The time now is 09:07.

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