Raised This Month: $ Target: $400
 0% 

Motd Windows Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
lahm
New Member
Join Date: Mar 2009
Old 03-07-2009 , 12:04   Motd Windows Help
Reply With Quote #1

I'm looking for a plugin, which makes up a window motd with help when someone types "help (without " / ")

In another forum said to compile this ...


PHP Code:
#include <amxmodx>

#pragma dynamic 32678

public plugin_init()
{
    
register_clcmd("say help""CommandHelp")
    
register_clcmd("say ajuda""CommandHelp")
}

public 
CommandHelp(id)
{
    static 
iMOTDLoadediLen
    
static szMotd[4096]

    if(!
iMOTDLoaded)
    {
        new 
hFile fopen("\help_motd.html""r")
        if(!
hFile)
            
fclose(fopen("\help_motd.html""w"))
        else
        {
            while(!
feof(hFile))
            {
                
iLen += (fgets(hFileszMotd[iLen], charsmax(szMotd) - iLen))
            }
            
fclose(hFile)
        }
                
iMOTDLoaded true
    
}

    if(
szMotd[0])
    {
        
show_motd(idszMotd)
        return 
PLUGIN_HANDLED
    
}
    
    return 
PLUGIN_CONTINUE

but it didn’t work

Does anyone can help me? :]
lahm is offline
 


Thread Tools
Display Modes

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 09:03.


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