Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ServerRulesDialog by Lzy
- #include <a_samp>
- #pragma tabsize 0
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" ServerRulesDialog by Lzy");
- print("--------------------------------------\n");
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "{00FFFF}Server Rules", "{007FFF}Rule 1: ...\n\n{007FFF}Rule 2: ...\n\n{007FFF}Rule 3: ...\n\n{007FFF}Rule 4: ...\n\n{007FFF}Rule 5: ...\n\n{FF0000}Decline the rules above you will be KICKED!", "Accept", "Decline");
- SendClientMessage(playerid,0xFFFF00,"ServerRules by : Lzy");
- return 1;
- }
- forward KickPublic(playerid);
- public KickPublic(playerid) { Kick(playerid); }
- stock KickWithMessage(playerid, color, message[])
- {
- SendClientMessage(playerid, color, message);
- SetTimerEx("KickPublic", 1000, 0, "d", playerid);
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 1)
- {
- if(response)
- {
- SendClientMessage(playerid,0xFF0000, "[SERVER]: {FF7F24}You have Accepted the rules---Have fun!");
- }
- else
- {
- KickWithMessage(playerid,0xFF0000FF, "[SERVER]: You have Decline the rules and kicked by ther server ! ");
- }
- return 1;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement