Misiur

Untitled

Feb 21st, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.57 KB | None | 0 0
  1. #include <YSI\y_hooks>
  2.  
  3. new
  4.     gRulesDialog = -1
  5. ;  
  6.  
  7. hook OnGameModeInit()
  8. {
  9.     gRulesDialog = Dialog_ObtainID();
  10.     return 1;
  11. }
  12.  
  13. hook OnPlayerConnect(playerid)
  14. {
  15.     inline RulesHandler(pid, dialogid, response, listitem, string:inputtext[])
  16.     {
  17.         #pragma unused pid, dialogid, listitem, inputtext
  18.         if(!response) {
  19.             print("DC");
  20.         } else print("NDC");
  21.     }
  22.  
  23.     Dialog_ShowCallback(playerid, using inline RulesHandler, DIALOG_STYLE_MSGBOX, "Server rules", "Here will be some rules", "I accept", "Exit", .dialog = gRulesDialog);
  24.     return 1;
  25. }
  26.  
  27. #undef _inc_handler
Advertisement
Add Comment
Please, Sign In to add comment