/accept to accept the server rules
#4

Are you scripting with 0.3?
If so, you can use my dialog rules system. It works on sending the dialog to the player on connecting and then if they decline it, it kicks them..

Put this in OnPlayerConnect
Quote:

ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"Y OUR SERVER NAME"," your server rules ","Agree","Disagree");

Just edit it to show your server name, and your rules. You can get each rule to show on a seperate line by using \n

And this can go anywhere as its a public

Quote:

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 0)
{
if(response == 0)
{
SendClientMessage(playerid, 0xFFFFFFFF, "You MUST agree with the Terms and Conditions before you can play. You will now be kicked.");
Kick(playerid);
new stringsys [256];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(stringsys, sizeof(stringsys), "[SYSTEM] %s has been kicked for not agreeing to the rules of the server!", pName);
SendClientMessageToAll(COLOR_YELLOW, stringsys);
}
if(response == 1)
{
SendClientMessage(playerid, 0xFFFFFFFF, "Thank you for agreeing with our conditions.");
}
return 1;
}
return 0;
}

Hope that helps.
Reply


Messages In This Thread
/accept to accept the server rules - by makogemata - 23.11.2009, 19:17
Re: /accept to accept the server rules - by Correlli - 23.11.2009, 19:21
Re: /accept to accept the server rules - by makogemata - 23.11.2009, 19:22
Re: /accept to accept the server rules - by chaosnz - 23.11.2009, 20:06
Re: /accept to accept the server rules - by makogemata - 23.11.2009, 20:53

Forum Jump:


Users browsing this thread: 1 Guest(s)