Код
public OnPluginStart()
HookUserMessage(GetUserMessageId("VGUIMenu"), OnMsgVGUIMenu, true);
public Action:OnMsgVGUIMenu(UserMsg:msg_id, Handle:bf, const players[], playersNum, bool:reliable, bool:init)
{
decl String:buff[16];
BfReadString(bf, buff, sizeof(buff));
if(!strcmp(buff, "class_ct") || !strcmp(buff, "class_ter"))
{
return Plugin_Handled; // блочим выбор модели
}
return Plugin_Continue;
}