Help with OnDialogResponse
#3

pawn Код:
ACMD:admincp(playerid, params[])
{
    SPD(playerid, Admincp, DIALOG_STYLE_LIST, "Admin command panel", "Clearchat\nAdministrator commands\n","Select", "Close");
    return 1;
}


public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
        if(response)
        {
            switch(dialogid == Admincp)
           {
               case 1:
               {
                    switch(listitem)
                    {
                         case 0:
                         {
                              if (pInfo[playerid][Adminlevel] < 1) return 0;
                          for(new i;i<100;i++)
                          SCMToAll(-1, " ");
                         }
                         case 1:
                         {
                             // add more cods if u need more
                         }  
                }
              }
           }
        }
    return 1;
}
Reply


Messages In This Thread
Help with OnDialogResponse - by LeXuZ - 23.11.2014, 11:59
Re: Help with OnDialogResponse - by LeXuZ - 23.11.2014, 12:48
Re: Help with OnDialogResponse - by UltraScripter - 23.11.2014, 12:50
Re: Help with OnDialogResponse - by LeXuZ - 23.11.2014, 12:53
Re: Help with OnDialogResponse - by UltraScripter - 23.11.2014, 12:57
Re: Help with OnDialogResponse - by LeXuZ - 23.11.2014, 12:59
Re: Help with OnDialogResponse - by UltraScripter - 23.11.2014, 13:03
Re: Help with OnDialogResponse - by biker122 - 23.11.2014, 13:13
Re: Help with OnDialogResponse - by LeXuZ - 23.11.2014, 13:21
Re: Help with OnDialogResponse - by Mic_H - 23.11.2014, 13:22

Forum Jump:


Users browsing this thread: 1 Guest(s)