If you use amx 1.9+
on server.cfg:
gameme_message_prefix "YourPrefixHere"
PHP Code:
#include <amxmodx>
new cvarhook:gamemehandle
new GameMeString[MAX_NAME_LENGTH]
public plugin_init()
{
register_plugin("Gameme Prefix", "0.1", "AlliedModders")
}
public plugin_cfg()
{
formatex(GameMeString, charsmax(GameMeString), "YourPrefixHere")
gamemehandle = hook_cvar_change(get_cvar_pointer("gameme_message_prefix"),"HOOK_CvarChange")
}
public HOOK_CvarChange(pCvar,const Old[],const New[])
{
if (!equal(New, GameMeString))
{
disable_cvar_hook(gamemehandle)
set_pcvar_string(pCvar, GameMeString)
enable_cvar_hook(gamemehandle)
}
}
__________________