Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <amxmisc>
- #include <hamsandwich>
- #include <fun>
- #include <cstrike>
- #include <fakemeta>
- public plugin_init()
- {
- register_plugin("[ZP] CS-CLUB VIP", "1.0", "miO")
- register_concmd( "svip_menu","vipmenu" );
- }
- public vipmenu( id )
- {
- if(!(get_user_flags(id) & ADMIN_LEVEL_H))
- {
- ChatColor(id, "!g[ZP] Sorry, but you have no access to the VIP MENU, Buy VIP by Contacting @Madmad .");
- return PLUGIN_HANDLED;
- }
- new menu = menu_create( "w[CSCLUB] VIP Menu:", "menu_handler" );
- menu_additem( menu, "wJanus-3 r[y8000r$]", "", 0 );
- menu_additem( menu, "wThanatos-7r[3000r$]", "", 0 );
- menu_additem( menu, "wMP5 Born Beastr[5000r$]", "", 0 );
- menu_setprop( menu, MPROP_EXIT, MEXIT_ALL );
- menu_display( id, menu, 0 );
- }
- public menu_handler( id, menu, item )
- {
- switch( item )
- {
- case 0:
- {
- new money = cs_get_user_money(id)
- if (money >= 8000)
- {
- cs_set_user_money(id, money - 8000)
- client_cmd(id, "svip_janus3")
- ChatColor(id,"!g[CSC] !yYou have bought !g[janus3] yEnjoy Killing Zombies.");
- }
- else
- {
- ChatColor(id,"!g[AMXX] !yYou dont have enough money to buy !g[janus3]")
- }
- }
- case 1:
- {
- new money = cs_get_user_money(id)
- if (money >= 3000)
- {
- cs_set_user_money(id, money - 3000)
- client_cmd(id, "svip_tho7")
- ChatColor(id,"!g[CSC] !yYou have bought !g[Thanatos-7] yEnjoy Killing Zombies.");
- }
- else
- {
- ChatColor(id,"!g[CSC] !yYou dont have enough money to buy !g[Thanatos-7]")
- }
- }
- case 2:
- {
- new money = cs_get_user_money(id)
- if (money >= 5000)
- {
- cs_set_user_money(id, money - 5000)
- client_cmd(id, "svip_mp5")
- ChatColor(id,"!g[CSC] !yYou have bought !g[MP5 Born Beast] yEnjoy Killing Zombies.");
- }
- else
- {
- ChatColor(id,"!g[CSC] !yYou dont have enough money to buy !g[MP5 Born Beast]")
- }
- }
- }
- menu_destroy( menu );
- return PLUGIN_HANDLED;
- }
- // Stock: ChatColor!
- stock ChatColor(const id, const input[], any:...)
- {
- new count = 1, players[32]
- static msg[191]
- vformat(msg, 190, input, 3)
- replace_all(msg, 190, "!g", "^4") // Green Color
- replace_all(msg, 190, "!y", "^1") // Default Color
- replace_all(msg, 190, "!t", "^3") // Team Color
- replace_all(msg, 190, "!t2", "^0") // Team2 Color
- if (id) players[0] = id; else get_players(players, count, "ch")
- {
- for (new i = 0; i < count; i++)
- {
- if (is_user_connected(players[i]))
- {
- message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
- write_byte(players[i]);
- write_string(msg);
- message_end();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement