Server Rules
#2

Untested, should work fine:

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
        case Dialog_Rules:
        {
            if(!response)
            {
                new string[128], name[40];
                GetPlayerName(playerid, name, sizeof(name));
                format(string, sizeof(string), "%s has been kicked for declining the server rules!", name);
                return 1;
            }
            SendClientMessageToAll(-1,"You have accepted the rules, Welcome to the server");
        }
    }
    return 1;
}
Change -1 to the color you want ((i.g. COLOR_WHITE (if defined) or 0xFFFFFFFF)).

EDIT: If you need this to be explained, please, feel free to ask. I'd rather not do it if it is not needed.

EDIT: @Ken97, thanks. I saw that at first, but when I began scripting this, I completely forgot he wanted it for everyone. Edited my code as-well.
Reply


Messages In This Thread
Server Rules - by x96664 - 25.05.2012, 21:12
Re: Server Rules - by Kindred - 25.05.2012, 21:46
Re: Server Rules - by Neil. - 25.05.2012, 22:18
Re: Server Rules - by x96664 - 26.05.2012, 11:23
Re: Server Rules - by skullmuncher1337 - 26.05.2012, 11:27
Re: Server Rules - by x96664 - 26.05.2012, 11:56

Forum Jump:


Users browsing this thread: 2 Guest(s)