Raised This Month: $32 Target: $400
 8% 

Help / Support Extra Items Disable before Infection


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
frAd
Member
Join Date: Apr 2014
Location: Philippines
Old 10-07-2018 , 09:42   Extra Items Disable before Infection
Reply With Quote #1

How to enable only after the infection the extra items menu?
__________________
frAd is offline
Send a message via ICQ to frAd Send a message via AIM to frAd Send a message via Yahoo to frAd Send a message via Skype™ to frAd
Old 10-07-2018, 10:41
georgik57
This message has been deleted by georgik57.
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 10-07-2018 , 10:43   Re: Extra Items Disable before Infection
Reply With Quote #2

Ignore the warning on compiling.

PHP Code:
#include <amxmodx>
#include <zp50_gamemodes>
#include <zp50_items>

new g_bModeStarted;

public 
plugin_init()
{
    
register_plugin("ZP5 items block buy pre-mode""0.0.1""fuck knows who")
}

public 
zp_fw_gamemodes_start()
{
    
g_bModeStarted 1;
}

public 
zp_fw_gamemodes_end()
{
    
g_bModeStarted 0;
}

public 
zp_fw_items_select_pre(iID)
{
    if (!
g_bModeStarted)
        return 
ZP_ITEM_NOT_AVAILABLE;

Attached Files
File Type: sma Get Plugin or Get Source (zp50_item_block_buy_pre-mode.sma - 977 views - 420 Bytes)
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
frAd
Member
Join Date: Apr 2014
Location: Philippines
Old 10-07-2018 , 19:04   Re: Extra Items Disable before Infection
Reply With Quote #3

It works like a charm. Thank you so much.
__________________
frAd is offline
Send a message via ICQ to frAd Send a message via AIM to frAd Send a message via Yahoo to frAd Send a message via Skype™ to frAd
Reply



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 19:30.


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