Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] VIP + POINTS: Purchase Menu


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sayf118
Member
Join Date: Jul 2017
Old 01-19-2023 , 09:55   [ZP] VIP + POINTS: Purchase Menu
Reply With Quote #1

bind open points menu:
- pointsmodmenu
or
- say /points


bind open vip menu:
- vipmodmenu
or
- say /vm


Add vip users to 'cstrike/addons/amxmodx/configs/users.ini':
- "sayf" "password123" "bi" "ab"


Adding extra item to VIP menu: (exp: zp_extra_goldenak.sma):
- first line in plugin_init:
PHP Code:
cvar_cost_vip register_cvar("zp_goldenak_cost_vip","25"
- second line in plugin_init:
PHP Code:
g_itemid_goldenak_vip zv_register_extra_item("GOLDEN AK","Powerful Golden AK"get_pcvar_num(cvar_cost_vip), ZV_TEAM_HUMAN
- add this function:
PHP Code:
public zv_extra_item_selected(playeritemid)
{
    if ( 
itemid == g_itemid_goldenak_vip )
    {
        return 
GiveGoldenAk(player// this is a function to give player goldenak
    
}
    return 
PLUGIN_CONTINUE

this is a modified version based on my cs 1.6 zombie survival mod server: 20.216.138.13:27015
Check it out or do whatever you like...
Attached Files
File Type: zip cstrike.zip (19.6 KB, 106 views)

Last edited by sayf118; 01-19-2023 at 10:07.
sayf118 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 01:08.


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