Y.Jeen
Умник
Вверх мода:
В начало OnPlayerCommandText
В начало OnDialogResponse
Готово.
Автор: Y.Jeen
PHP:
stock USPD(playerid, dialogid, style, caption[], info[], button1[], button2[])
{
ShowPlayerDialog(playerid, dialogid, style, caption, info, button1, button2);
SetPVarInt(playerid, "UseDDialoG", 1);
return 1;
}
#define ShowPlayerDialog USPD
PHP:
if(GetPVarInt(playerid, "UseDDialoG") == 1) return SendClientMessage(playerid, 0xFF00FF80, "Запрещено использовать при открытом диалоге!");
PHP:
SetPVarInt(playerid,"UseDDialoG" ,0);
Автор: Y.Jeen
