When we do this, players with the "custom 3" flag do not have access to this menu. what exactly is wrong? outputs a message to the chat.
PHP Code:
public Action HandleCmdMenu(int client, int args) {
if (GetUserFlagBits(client) == ADMFLAG_CUSTOM3) {
Menu menu = new Menu(HandleMenuOpen);
menu.SetTitle("%T", "MENU", client);
for(int i=0; i<sizeof(g_sCmds); i++)
{
if(g_sCmds[i][0] == '\0') break;
char option [64];
char optionName [10];
if(TranslationPhraseExists(g_sCmds[i])) Format(option, sizeof(option), "%T", g_sCmds[i], client);
else Format(option, sizeof(option), "%s", g_sCmds[i]);
Format(optionName, sizeof(optionName),"option%d", i);
menu.AddItem(optionName, option);
}
menu.ExitButton = true;
menu.Display(client, MENU_TIME_FOREVER);
}
else {
PrintToChat (client, "\x05No Acces, You're Not A \x03Gold Vip \n \x05Purchase: \x04regionz.ml/home-page/fiyatlar.html");
}
}
Print this Message
Quote:
No Acces, You're Not A Gold Vip
Purchase: regionz.ml/home-page/fiyatlar.html
|