I really don't understand why it is so difficult for you to copy/paste a single line of code. Where did you see me mention anything about creating a format inside the .sma file? That's not how the function works. It requires a format identifier, not the entire format line inside it.
Code:
#include <amxmodx>
#include <chatmanager>
public plugin_init()
{
register_plugin("CM: Setinfo Prefix", "1.0", "OciXCrom")
}
public client_putinserver(id)
{
cm_on_player_data_updated(id)
}
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_say_format(id, "format_admin", "format_admin_team")
cm_set_user_prefix(id, "[YOUR PREFIX HERE]")
}
}
Tested and working.
__________________