AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Don't close motd with space? (https://forums.alliedmods.net/showthread.php?t=144551)

loyc 12-05-2010 08:10

Don't close motd with space?
 
Hi.
I have a webpage in my motd and there is some fields that player can write in, but when they press space motd closes. Is there a way to change this?

abdul-rehman 12-05-2010 08:19

Re: Don't close motd with space?
 
I think its not possible for them to write in a motd window
A better option will to force thier internet browser to open that web page through some html coding (but i dont have any idea regarding html)

loyc 12-05-2010 08:22

Re: Don't close motd with space?
 
Yes i have motd redirect to my web page and in there i have form. I can write, but i need to separate words with spaces. When i hit space it closes.

abdul-rehman 12-05-2010 08:48

Re: Don't close motd with space?
 
Thats bcoz motd close if you hit enter or space key !

loyc 12-05-2010 08:49

Re: Don't close motd with space?
 
yes. thats why I am asking is there a way, plugin, mod etc to stop it.

abdul-rehman 12-05-2010 08:56

Re: Don't close motd with space?
 
Quote:

Originally Posted by loyc (Post 1363703)
yes. thats why I am asking is there a way, plugin, mod etc to stop it.

No , i dont think so

bibu 12-05-2010 09:15

Re: Don't close motd with space?
 
Impossible.

avril-lavigne 12-05-2010 09:59

Re: Don't close motd with space?
 
possible i have the code

Code:

#include <amxmodx>

#define PLUGIN "Motd Block"
#define VERSION "1.0"
#define AUTHOR "Ser_UFL"

public plugin_init()
    register_plugin(PLUGIN, VERSION, AUTHOR)

public client_putinserver(id)
    set_task(0.1, "MotdBlock", id, "", 0, "a", 100)  // 100 means - 10 seconds u cant close it

public MotdBlock(id)
    show_motd(id, "motd.txt", "RULES")


drekes 12-05-2010 10:09

Re: Don't close motd with space?
 
Quote:

Originally Posted by avril-lavigne (Post 1363753)
possible i have the code

Code:

#include <amxmodx>

#define PLUGIN "Motd Block"
#define VERSION "1.0"
#define AUTHOR "Ser_UFL"

public plugin_init()
    register_plugin(PLUGIN, VERSION, AUTHOR)

public client_putinserver(id)
    set_task(0.1, "MotdBlock", id, "", 0, "a", 100)  // 100 means - 10 seconds u cant close it

public MotdBlock(id)
    show_motd(id, "motd.txt", "RULES")


Will the webpage even load when you show the MOTD 100 times in 10 seconds?

abdul-rehman 12-05-2010 10:36

Re: Don't close motd with space?
 
Quote:

Originally Posted by avril-lavigne (Post 1363753)
possible i have the code

Code:

#include <amxmodx>

#define PLUGIN "Motd Block"
#define VERSION "1.0"
#define AUTHOR "Ser_UFL"

public plugin_init()
    register_plugin(PLUGIN, VERSION, AUTHOR)

public client_putinserver(id)
    set_task(0.1, "MotdBlock", id, "", 0, "a", 100)  // 100 means - 10 seconds u cant close it

public MotdBlock(id)
    show_motd(id, "motd.txt", "RULES")


That would even work, and will annoy the client instead :lol:


All times are GMT -4. The time now is 11:22.

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