Advertisement
Guest User

allarw

a guest
Oct 7th, 2009
950
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. /*
  2. * Simple Rules
  3. * by allarw
  4. */
  5.  
  6. #include <a_samp>
  7.  
  8. #define FILTERSCRIPT
  9. #define COLOR_RED 0xFF0000FF
  10.  
  11. #if defined FILTERSCRIPT
  12.  
  13. public OnFilterScriptInit()
  14. {
  15. print("Simple rules loaded");
  16. return 1;
  17. }
  18.  
  19. #endif
  20.  
  21. public OnPlayerSpawn(playerid)
  22. {
  23. ShowPlayerDialog(playerid,2,DIALOG_STYLE_MSGBOX,"Do you accept our rules:","No cheating\nNo DM\nRespect other players\nNo swearing","Accept","Decline");
  24. return 1;
  25. }
  26. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  27. {
  28. if(dialogid == 2) // Dialog ID
  29. {
  30. if(response) return SendClientMessage(playerid, COLOR_RED, "Good boy!"); // Accepted rules
  31. else SendClientMessage(playerid, COLOR_RED, "No? Sorry, this server is not for you then. Cya."); // Declined rules
  32. Kick( playerid );
  33. }
  34. return 1;
  35. }
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement