Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Plugin generated by AMXX-Studio */
- #include < amxmodx >
- #include < colorchat >
- #define SKYPE "XXX" // Put Your Skype
- new AdminCost[ 3 ][] =
- {
- "25", // Price of VIP
- "50", // Price of Admin
- "75" // Price of SuperAdmin/Manager
- };
- new const g_szPrefix[] = "^4[BuyAdmin]^1"; // Tag Server
- public plugin_init()
- {
- register_plugin( "BuyAdmin Menu", "v1.0", "CheezPuff" ); // Dont Change Credits
- register_clcmd("say buyadmin","BuyAccess");
- register_clcmd("say /buyadmin","BuyAccess");
- register_clcmd("say_team /buyadmin","BuyAccess");
- set_task(180.0, "buyadmin",_,_,_, "b"); // 180.0 = 3 mins to message
- }
- public buyadmin( client )
- {
- ColorChat( client, NORMAL, "%s Type: ^3/buyadmin^1 to open BuyAdmin Menu.", g_szPrefix ) // message of buyadmin
- }
- public BuyAccess( client )
- {
- if ( !is_user_connected( client ) )
- return 1;
- new szMenu[ 99 ], iMenu;
- formatex( szMenu, charsmax( szMenu ), "\r[AMXX] \wBuyAdmin Menu" );
- iMenu = menu_create( szMenu, "CmdBuyHandler" );
- formatex( szMenu, charsmax(szMenu), "VIP \y- \w[ \wCost: \y%s ILS \w]", AdminCost [ 0 ]);
- menu_additem( iMenu, szMenu, "0" );
- formatex( szMenu, charsmax(szMenu), "Admin \y- \w[ \wCost: \y%s ILS \w]", AdminCost [ 1 ]);
- menu_additem( iMenu, szMenu, "1" );
- 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 );
- menu_additem( iMenu, szMenu, "2" );
- menu_setprop( iMenu, MPROP_EXIT, MEXIT_ALL );
- menu_display( client, iMenu, 0 );
- return 1;
- }
- public CmdBuyHandler(client , iMenu, Item)
- {
- if ( Item == MENU_EXIT )
- {
- menu_destroy( iMenu );
- return PLUGIN_HANDLED;
- }
- switch( Item )
- {
- case 0:
- {
- ColorChat( client, NORMAL, "%s Add me to Skype:^3 %s", g_szPrefix, SKYPE );
- }
- case 1:
- {
- ColorChat( client, NORMAL, "%s Add me to Skype:^3 %s", g_szPrefix, SKYPE );
- }
- case 2:
- {
- ColorChat( client, NORMAL, "%s Add me to Skype:^3 %s", g_szPrefix, SKYPE );
- }
- }
- BuyAccess( client );
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement