Guest User

Rules dialog Kudoz

a guest
Mar 20th, 2012
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. /*
  2. * Simple Rules // :)
  3. * by Kudoz //DO NOT REMOVE CREDITS!
  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 Hacking\nHacking=BAN\nNo DM\nRespect other players\nDon't Ask For Admin Status","Accept","Decline");
  24. return 1;
  25. }
  26. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  27. {
  28. if(dialogid == 2)
  29. {
  30. if(response) return SendClientMessage(playerid, COLOR_RED, "Good boy! You are Welcome to Play in my Server! :) ENJOY"); // If Player Accepted
  31. else SendClientMessage(playerid, COLOR_RED, "No? Sorry, this server is not for you then. BaiBai."); // If Player Denied
  32. Kick( playerid );
  33. }
  34. return 1;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment