I don't get why are you adding the VIP via "setinfo". Anyone can modify their "setinfo" and make themselves VIP. This is basically free VIP for anyone who wants it, so why just not add the prefix for everyone in the server?
Anyways, you can use this extra small
sub-plugin for my Chat Manager to set the prefix you want so badly:
Code:
#include <amxmodx>
#include <chatmanager>
public plugin_init()
{
register_plugin("CM: Setinfo Prefix", "1.0", "OciXCrom")
}
public cm_on_player_data_updated(id)
{
new szInfo[2]
get_user_info(id, "vip", szInfo, charsmax(szInfo))
if(str_to_num(szInfo) == 1)
{
cm_set_user_prefix(id, "[YOUR PREFIX HERE]")
}
}
__________________