Raised This Month: $ Target: $400
 0% 

MOTD help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-09-2005 , 23:15   MOTD help
Reply With Quote #1

Is it possible to show a user a motd and have the script wait until the user has clicked ok\close before proceding with the script?

Heres what I want to do: I have my C-D moderator plugin working and I wanted to add something so when they return to the server without C-D it will show them a motd explaining why they cant play without C-D and also provide a link to download C-D. I tried to use the kick command after the motd command but it doesn't show the motd, it only kicks. I know the motd is working because if I comment the kick command the motd shows. I need it to pause at the show_motd and as soon as it closes proceed with the kick.
__________________
Bugsy is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 03-10-2005 , 18:02  
Reply With Quote #2

just download the say_motd plugin peoples say /motd
__________________
- Bye bye!
nightscreem is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-10-2005 , 18:06  
Reply With Quote #3

Quote:
Originally Posted by nightscreem
just download the say_motd plugin peoples say /motd
Please read and fully understand the question before posting .
---

You could show the MOTD window, set a task to kick after X amount of seconds.. If that's what you're talking about.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
KaOs
Senior Member
Join Date: Apr 2004
Old 03-10-2005 , 19:44  
Reply With Quote #4

Ya I really don't think there's a way to do this.. The most reasonable thing I can think of would be to make it show the MOTD, and then detect any movement or commands from the user (that could only occure when the MOTD is closed) at which point they would be kicked
__________________
KaOs is offline
Send a message via AIM to KaOs Send a message via MSN to KaOs
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 03-10-2005 , 19:57  
Reply With Quote #5

client_PreThink + get_user_button + IN_CANCEL might work.
__________________
twistedeuphoria is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-10-2005 , 19:58  
Reply With Quote #6

The MOTD has an OK button, not Cancel .

Or does it work the same way?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 03-10-2005 , 20:00  
Reply With Quote #7

lol, did u try it though? I assume it does, do you have a button bound to +cancel?
__________________
twistedeuphoria is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-10-2005 , 20:07  
Reply With Quote #8

So try..

Code:
client_PreThink(id) {     if(get_user_button(id) & IN_CANCEL) {         // ..     } }
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-10-2005 , 20:32  
Reply With Quote #9

What does prethink do? jw
__________________
Bugsy is offline
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 03-10-2005 , 20:39  
Reply With Quote #10

Code:
new inmotd[33] = 0 public motd_cmd(id) {     //blah blah     //blah blah     //show motd     inmotd[id] = 1 } public client_PreThink(id) {     new but = get_user_button(id)     new obut = get_user_oldbutton(id)     if((but & IN_CANCEL) && !(obut & IN_CANCEL) && (inmotd[id] == 1))     {         inmotd[id] = 0         //put stuff to be done after motd here     } }

That should work.
__________________
twistedeuphoria 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:57.


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