Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //FilterScript By Stylez Enjoy hopefully :)
- #include <a_samp>
- #define COLOR_RED 0xAA3333AA
- #define COLOR_YELLOW 0xFFFF00AA
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Server Rules dialog");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- ShowPlayerDialog(playerid, 9851, DIALOG_STYLE_MSGBOX,"Server Rules", "Rule 1:No Hacking\n\
- Rule 2:No Imature Behavioure\n\
- Rule 3:No Racism\n\
- Rule 4:Respect all players\n\
- Rule 5:Do not be abusive to Admins or KICK/BAN\n\
- Rule 6:Have Fun!\n\
- Decline our rules you will be KICKED!\
- ", "Accept", "Decline");
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == 9851)
- {
- if(response)
- SendClientMessage(playerid,COLOR_YELLOW, "You Accepted our rules Have fun!");
- else
- SendClientMessage(playerid,COLOR_RED, "You Declined and have been kicked Goodbye!"),Kick(playerid);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement