Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <amxmisc>
- #include <cstrike>
- new const TAG[] = "!gSHOP!t"
- public plugin_init() {
- register_clcmd("say", "chksay")
- register_clcmd("say_team", "chksay")
- }
- new const ctshop[] = {
- "\wHP [\r50\w] \y500$",
- "\wAP [\r50\w] \y500$",
- "\wAK47 \y2500$",
- "\wGrenade Pack \y700$"
- }
- new const tshop[] = {
- "\wHP [\r50\w] \y500$",
- "\wAP [\r50\w] \y500$",
- "\wM4A1 \y2500$",
- "\wGrenade Pack \y700$"
- }
- new const keys[] = {
- "1",
- "2",
- "3",
- "4"
- }
- public chksay(Client) {
- if(!is_user_alive(Client)) {
- client_print(Client, print_chat, "[%s] Trebuie sa fi !gviu !tca sa folosesti shop-ul!", TAG)
- }
- new team = cs_get_user_team(Client)
- switch(team) {
- case CS_TEAM_CT : {
- new temp[64]
- formatex(temp, charsmax(temp), "\w[\rSHOP CT\w]")
- new menu = menu_create(temp, "ct_shop")
- for(new i = 0; i < sizeof ctshop; i++) {
- for(new m = 0; m < sizeof keys; m++) {
- menu_additem(menu, ctshop[i], keys[m], 0)
- menu_setprot(menu, MPROP_EXIT, MEXIT_ALL)
- menu_display(Client, menu, 0)
- }
- }
- }
- case CS_TEAM_T : {
- new temp[64]
- formatex(temp, charsmax(temp), "\w[\rT SHOP\w]")
- new menu = menu_create(temp, "t_shop")
- for(new x = 0; x < sizeof tshop; x++) {
- for(new london = 0; london < sizeof keys; london++) {
- menu_additem(menu, tshop[x], keys[london], 0)
- menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)
- menu_display(Client, menu, 0)
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement