OnDialogResponse[HALP] :)
#4

why not try this

pawn Код:
new rules;//put it anywhere you want

      if(dialogid == rules)
      {
        if(response)
        {
        if(listitem == 0) //Agree with the rules
        {
        new pname[24];
        new string[128];
        GetPlayerName(playerid,pname,sizeof(pname));
        format(string,sizeof(string),"%s(%d) Has readed the server rules by typing /showrules{FFFFFF}!",pname,playerid);
        SendClientMessageToAll(COLOR_GREEN,string);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            TogglePlayerControllable(i, 1);
        }
        }
        if(listitem == 1) //Disagree with the rules
        {
        new pname[24];
        new string[128];
        GetPlayerName(playerid,pname,sizeof(pname));
        Kick(playerid);
        format(string,sizeof(string),"%s(%d) Has been kicked Reason:Disagreeing with server-rules{FFFFFF}, you can check it by typing /showrules!",pname,playerid);
        SendClientMessageToAll(COLOR_GREEN,string);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            TogglePlayerControllable(i, 1);
        }
        }
       }
instead of case!
Reply


Messages In This Thread
OnDialogResponse[HALP] :) - by [CG]Milito - 13.12.2012, 17:52
Re: OnDialogResponse[HALP] :) - by Mean - 13.12.2012, 18:16
Re: OnDialogResponse[HALP] :) - by DaRk_RaiN - 13.12.2012, 18:22
Re: OnDialogResponse[HALP] :) - by Patrick - 13.12.2012, 18:24
Re: OnDialogResponse[HALP] :) - by Konstantinos - 13.12.2012, 18:32

Forum Jump:


Users browsing this thread: 3 Guest(s)