Problem Adding more then 1 Dialog.
#6

heres a example
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 2)
    {
        if(response == 0)
        {
                   case:1
                   {
                      case:0
                      {
            SendClientMessage(playerid, COLOR_DIS_RED, "You Have Been Kicked For not Accepting the rules!");
            Kick(playerid);
            new stringsys [256];
            new pName[MAX_PLAYER_NAME];
            GetPlayerName(playerid, pName, sizeof(pName));
            format(stringsys, sizeof(stringsys), "[Rules]%s Has been kicked for not accepting the rules.", pName);
            SendClientMessageToAll(COLOR_DIS_RED, stringsys);
              }
            case: 1
                        {
            SendClientMessage(playerid, COLOR_DIS_RED, "{00FF40}[ACCEPTED]{F2C80C}Thanks for accepting the rules!{A1C2FF}Welcome to the server!");
            new Float:pX, Float:pY, Float:pZ;
            PlayerPlaySound(playerid,1057,pX,pY,pZ);
        }
Reply


Messages In This Thread
Problem Adding more then 1 Dialog. - by TheYoungCapone - 07.02.2011, 00:16
Re: Problem Adding more then 1 Dialog. - by Tee - 07.02.2011, 00:23
Re: Problem Adding more then 1 Dialog. - by fangoth1 - 07.02.2011, 00:32
Re: Problem Adding more then 1 Dialog. - by TheYoungCapone - 07.02.2011, 00:39
Re: Problem Adding more then 1 Dialog. - by Hal - 07.02.2011, 00:41
Re: Problem Adding more then 1 Dialog. - by fangoth1 - 07.02.2011, 01:49
Re: Problem Adding more then 1 Dialog. - by JaTochNietDan - 07.02.2011, 02:15

Forum Jump:


Users browsing this thread: 1 Guest(s)