View Single Post
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-28-2020 , 13:55   Re: No prefix with custom plugin?
Reply With Quote #21

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.
__________________

Last edited by OciXCrom; 05-28-2020 at 13:55.
OciXCrom is offline
Send a message via Skype™ to OciXCrom