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 iMOTDLoaded, iLen
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(hFile, szMotd[iLen], charsmax(szMotd) - iLen))
}
fclose(hFile)
}
iMOTDLoaded = true
}
if(szMotd[0])
{
show_motd(id, szMotd)
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
but it didn’
t work
Does anyone can help me? :]