Advertisement
CheezPuff

BuyAdmin Access Menu [Updated 2018]

Aug 20th, 2013
1,488
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.12 KB | None | 0 0
  1. /* Plugin generated by AMXX-Studio */
  2.  
  3. #include < amxmodx >
  4. #include < colorchat >
  5.  
  6. #define SKYPE "XXX" // Put Your Skype
  7.  
  8. new AdminCost[ 3 ][] =
  9. {
  10.     "25", // Price of VIP
  11.     "50", // Price of Admin
  12.     "75" // Price of SuperAdmin/Manager
  13. };
  14.  
  15. new const g_szPrefix[] = "^4[BuyAdmin]^1"; // Tag Server
  16.  
  17. public plugin_init()
  18. {
  19.         register_plugin( "BuyAdmin Menu", "v1.0", "CheezPuff" ); // Dont Change Credits
  20.    
  21.         register_clcmd("say buyadmin","BuyAccess");
  22.         register_clcmd("say /buyadmin","BuyAccess");
  23.         register_clcmd("say_team /buyadmin","BuyAccess");
  24.  
  25.         set_task(180.0, "buyadmin",_,_,_, "b"); // 180.0 = 3 mins to message
  26. }
  27.  
  28. public buyadmin( client )
  29. {
  30.         ColorChat( client, NORMAL, "%s Type: ^3/buyadmin^1 to open BuyAdmin Menu.", g_szPrefix ) // message of buyadmin
  31. }
  32.  
  33. public BuyAccess( client )
  34. {
  35.     if ( !is_user_connected( client ) )
  36.         return 1;
  37.    
  38.     new szMenu[ 99 ], iMenu;
  39.    
  40.     formatex( szMenu, charsmax( szMenu ), "\r[AMXX] \wBuyAdmin Menu" );
  41.    
  42.     iMenu = menu_create( szMenu, "CmdBuyHandler" );
  43.    
  44.     formatex( szMenu, charsmax(szMenu), "VIP \y- \w[ \wCost: \y%s ILS \w]", AdminCost [ 0 ]);
  45.     menu_additem( iMenu, szMenu, "0" );
  46.    
  47.     formatex( szMenu, charsmax(szMenu), "Admin \y- \w[ \wCost: \y%s ILS \w]", AdminCost [ 1 ]);
  48.     menu_additem( iMenu, szMenu, "1" );
  49.    
  50.     formatex( szMenu, charsmax(szMenu), "Manager \y- \w[ \wCost: \y%s ILS \w]^n^n\r// \dThis amount per month.^n\r// \dSkype: %s", AdminCost [ 2 ], SKYPE );
  51.     menu_additem( iMenu, szMenu, "2" );
  52.    
  53.     menu_setprop( iMenu, MPROP_EXIT, MEXIT_ALL );
  54.     menu_display( client, iMenu, 0 );
  55.    
  56.     return 1;
  57. }
  58.  
  59. public CmdBuyHandler(client , iMenu, Item)
  60. {
  61.     if ( Item == MENU_EXIT )
  62.     {
  63.         menu_destroy( iMenu );
  64.         return PLUGIN_HANDLED;
  65.     }
  66.        
  67.     switch( Item )
  68.     {
  69.        
  70.         case 0:
  71.         {
  72.             ColorChat( client, NORMAL, "%s Add me to Skype:^3 %s", g_szPrefix, SKYPE );
  73.         }
  74.         case 1:
  75.         {
  76.             ColorChat( client, NORMAL, "%s Add me to Skype:^3 %s", g_szPrefix, SKYPE );
  77.         }
  78.         case 2:
  79.         {
  80.             ColorChat( client, NORMAL, "%s Add me to Skype:^3 %s", g_szPrefix, SKYPE );
  81.         }
  82.    
  83.     }
  84.    
  85.     BuyAccess( client );
  86.     return 1;
  87. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement