Raised This Month: $ Target: $400
 0% 

Needs a little edit


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
LG-NabzOr
Junior Member
Join Date: May 2010
Old 07-26-2010 , 21:53   Needs a little edit
Reply With Quote #1

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(PLUGINVERSIONAUTHOR)    
    
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?
LG-NabzOr is offline
 



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 00:12.


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