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

Quote:
Originally Posted by BenJackster
Посмотреть сообщение
Oh, so if they press "Esc" to cancel the dialog, it will kick the player - that's what you want?
Well, if so, then go to OnDialogResponse
pawn Код:
if(dialogid == DIALOG_137)
  {
   if(!response)
     {
      SendClientMessage(playerid,xFF0000AA,"You failed to put the Administration PIN. In result, you are being kicked.");
Kick(playerid)
return 1;
}
if(response)
{
  // Rest of your code and functions over here.
P.S: Sorry for the bad Identations, just did that here.
No bro i did this already listen, U know that bug with F6? U press F6 use some command and dialog close..I need that if u got me now?

EDIT:
Код:
if(gPlayerSpawned[playerid] == 0)
{
    SendClientMessage(playerid, WHITE, "{FF4040}ERROR:{FFFFFF}Can not use commands right now.");
    return 1;
}
Like this..
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)