Nope, not working.. My code:
Code:
#include <amxmodx>
#include <fakemeta>
#define PLUGIN "GameDescription"
#define VERSION "1.0"
#define AUTHOR "-"
#define GAME_NAME "Zombie"
new gameDesc[32];
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_forward(FM_GetGameDescription, "GameDesc");
register_clcmd("say /gd", "cmd");
dllfunc(DLLFunc_GetGameDescription, gameDesc);
}
public cmd(id)
{
if (equal(gameDesc, "Zombie"))
client_print(id, print_chat, "It's work!");
else
client_print(id, print_chat, "Someting wrong.. Current GameDescription is: %s", gameDesc);
}
public GameDesc()
{
forward_return(FMV_STRING, GAME_NAME);
return FMRES_SUPERCEDE;
}