I've got this script:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
new const SUBMIT_URL[] = "http://www.leetgamer.no/requestadmin/requestadmin.php"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say !needadmin","showMotdSubmit")
}
public showMotdSubmit(id)
{
new motd[] = "<iframe style='position:absolute;left:0px;top:0px;border-style:none;width:105%%;height:110%%' src='%s'>"
new linkVars[] = "?player1=%s&p1_ip=%s&p1_steamid=%s&server=%s";
const linkLen = sizeof(SUBMIT_URL) + sizeof(linkVars) + 31 + 15 + 23 + 63;
const motdFullLen = sizeof(motd) + linkLen
new link[linkLen]
new motdFull[motdFullLen];
new name[32], ip[16], steamID[24], hostname[64];
get_user_name(id,name,31)
get_user_ip(id,ip,15,1)
get_user_authid(id,steamID,23);
get_cvar_string("hostname",hostname,63)
format(link,linkLen-1,"%s%s",SUBMIT_URL,linkVars);
format(link,linkLen-1,link,name,ip,steamID,hostname);
format(motdFull,motdFullLen-1,motd,link);
show_motd(id,motdFull);
}
The thing is, I want to be able to press the spacebar without the motd closing, as you have to fill out a form on the page is displays. Is this possible?