Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.21 KB | None | 0 0
  1. //FilterScript By Stylez Enjoy hopefully :)
  2.  
  3. #include <a_samp>
  4.  
  5. #define COLOR_RED               0xAA3333AA
  6. #define COLOR_YELLOW            0xFFFF00AA
  7.  
  8.  
  9. public OnFilterScriptInit()
  10. {
  11.     print("\n--------------------------------------");
  12.     print(" Server Rules dialog");
  13.     print("--------------------------------------\n");
  14.     return 1;
  15. }
  16.  
  17. public OnFilterScriptExit()
  18. {
  19.     return 1;
  20. }
  21.  
  22.  
  23.  
  24. public OnPlayerConnect(playerid)
  25. {
  26.     ShowPlayerDialog(playerid, 9851, DIALOG_STYLE_MSGBOX,"Server Rules", "Rule 1:No Hacking\n\
  27.                                                                        Rule 2:No Imature Behavioure\n\
  28.                                                                        Rule 3:No Racism\n\
  29.                                                                        Rule 4:Respect all players\n\
  30.                                                                        Rule 5:Do not be abusive to Admins or KICK/BAN\n\
  31.                                                                        Rule 6:Have Fun!\n\
  32.                                                                        Decline our rules you will be KICKED!\
  33.                                                                        ", "Accept", "Decline");
  34.     return 1;
  35. }
  36.  
  37. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  38. {
  39.     if(dialogid == 9851)
  40.     {
  41.         if(response)
  42.             SendClientMessage(playerid,COLOR_YELLOW, "You Accepted our rules Have fun!");
  43.         else
  44.             SendClientMessage(playerid,COLOR_RED, "You Declined and have been kicked Goodbye!"),Kick(playerid);
  45.     }
  46.     return 0;
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement