Hi, so I tried making extension for OciXCrom's plugin, but I can't get it right.
So I wan't to give someone prefix on righ setinfo. | setinfo "vip" "1"
So I got this far but I can't quite make it.
PHP Code:
#include <amxmodx>
#include <chatmanager>
public plugin_init()
{
register_plugin("SetInfo Prefix", "1.2", "OciXCrom")
}
public client_authorized(id)
{
static szInfo[5]
get_user_info(id, "vip", szInfo, charsmax(szInfo))
if( szInfo[0] == '1' )
{
cm_set_user_prefix(id, [VIP])
}
}