Raised This Month: $ Target: $400
 0% 

Motd Windows Help


Post New Thread Reply   
 
Thread Tools Display Modes
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
iNspiratioN
Member
Join Date: Feb 2009
Location: Lithuania
Old 03-07-2009 , 12:40   Re: Motd Windows Help
Reply With Quote #2

PHP Code:
#include <amxmodx>

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

public 
CommandHelp(id)
{
    
show_motd(id,"help_motd.txt""Help menu")

create help_motd.txt in cstrike folder.

Hope that help's you. (This is the easyest way.I think...)

Last edited by iNspiratioN; 03-07-2009 at 12:44.
iNspiratioN is offline
lahm
New Member
Join Date: Mar 2009
Old 03-07-2009 , 13:00   Re: Motd Windows Help
Reply With Quote #3

Quote:
Originally Posted by iNspiratioN View Post
PHP Code:
#include <amxmodx>

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

public 
CommandHelp(id)
{
    
show_motd(id,"help_motd.txt""Help menu")

create help_motd.txt in cstrike folder.

Hope that help's you. (This is the easyest way.I think...)
It works, tks.
lahm 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 09:03.


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