23.11.2009, 20:06
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
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
Hope that helps.
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"); |
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; } |