Raised This Month: $12 Target: $400
 3% 

[bb] vipshop


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
yousuf khan
Member
Join Date: May 2019
Old 10-18-2020 , 08:48   [bb] vipshop
Reply With Quote #1

Hi.
I Want To Do VIPSHOP Only For VIPS And I Trying To Do That For Menu But I Can't Do That Can AnyOne Do That In This Menu Code:



Code:
public ClcmdMenu(id)
{
    new szMenu = menu_create("\y|\ro\y| \wCB VIP-SHOP \y|\ro\y|", "szMenuHandler")

    if(zp_get_user_zombie(id))
    menu_additem(szMenu, "\dWeapon Shop \r(\d Humans Only \r)", "0", 0)
    else
    menu_additem(szMenu, "\yWeapon Shop \w(\y Humans Only \w)", "0", 0)
    if(zp_get_user_zombie(id))
    menu_additem(szMenu, "\yHealth Shop \w(\y Zombies Only \w)", "1", 0)
    else
    menu_additem(szMenu, "\dHealth Shop \r(\d Zombies Only \r)", "1", 0)
    menu_setprop(szMenu, MPROP_EXIT, MEXIT_ALL )
    menu_display(id, szMenu, 0)

}

public szMenuHandler(id, szMenu, item)
{
    if(item == MENU_EXIT)
    {
        menu_destroy(szMenu)
        return PLUGIN_HANDLED
    }

    switch(item)
    {
        case 0: OpenGunsMenu(id)
        case 1: OpenHealthMenu(id)
    }
    return PLUGIN_CONTINUE
}

Last edited by yousuf khan; 10-18-2020 at 08:48.
yousuf khan is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 10-18-2020 , 09:03   Re: [bb] vipshop
Reply With Quote #2

PHP Code:
public ClcmdMenu(id)
{
    if(!
get_user_flags(id) & ADMIN_LEVEL_H) {
        return 
PLUGIN_HANDLED
    
}

    new 
szMenu menu_create("\y|\ro\y| \wCB VIP-SHOP \y|\ro\y|""szMenuHandler")

    if(
zp_get_user_zombie(id))
    
menu_additem(szMenu"\dWeapon Shop \r(\d Humans Only \r)""0"0)
    else
    
menu_additem(szMenu"\yWeapon Shop \w(\y Humans Only \w)""0"0)
    if(
zp_get_user_zombie(id))
    
menu_additem(szMenu"\yHealth Shop \w(\y Zombies Only \w)""1"0)
    else
    
menu_additem(szMenu"\dHealth Shop \r(\d Zombies Only \r)""1"0)
    
menu_setprop(szMenuMPROP_EXITMEXIT_ALL )
    
menu_display(idszMenu0)
    
    return 
PLUGIN_CONTINUE


__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.

Last edited by Supremache; 10-18-2020 at 09:05.
Supremache is offline
Mohamed null
BANNED
Join Date: Sep 2020
Location: Algeria
Old 10-18-2020 , 12:02   Re: [bb] vipshop
Reply With Quote #3

i want click m in server / bind "m" "say /vm" for all vips ADMIN_LEVEL_H
and show me
VIP Menu
Knives Menu
Glow Menu
Golden Deagle
Neox Gun
Mohamed null is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode