/accept to accept the server rules
#1

I wanna make that /accept command.. that they log in but they cant spawn before they /accept the rules
Just /accept tu accept the rules.
Somebody can help me?
Reply
#2

Quote:
Originally Posted by Dynami:t
Somebody can make that?
-> Script request topic.
Reply
#3

Oh, im sorry!
Reply
#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
#5

Oeh, again im in trouble..
Can someone make some FS?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)