[How to do]When player is on dialog cant use commands
#9

Quote:
Originally Posted by iFiras
Посмотреть сообщение
After creating variables and etc. You need to do that:
pawn Код:
if(PuttingAdminPin[playerid] == 1)
{
    SendClientMessage(playerid, WHITE, "{FF4040}ERROR:{FFFFFF}Can not use commands right now.");
    return 1;
}
under OnPlayerCommandText.
Correct me if I'm wrong.
Код:
if(PlayerInfo[playerid][pAdmin] >= 1)
{
    ShowPlayerDialog(playerid, 137, DIALOG_STYLE_INPUT,"Administrator panel","Insert the PIN of Administrator panel!","Insert","Disconnect");
    PuttingAdminPin[playerid] = 1;
}
Now I cant use any command..:/
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)