Raised This Month: $ Target: $400
 0% 

[Help] Zombie plague Vip Classes


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 08-17-2014 , 18:58   Re: [Help] Zombie plague Vip Classes
Reply With Quote #7

Sorry, my mistake. I don't realise that this code is using ZP5.0 coding style.

Just follow this new steps:

1. Please restore the code to the original code.

2. Just add #include <zmvip> in both code below #include <***> (any include).

3. For the first code, just add this part after the public zp_fw_core_infect_post(id) section:
PHP Code:
public zp_fw_class_zombie_select_pre(idclassid) {
    if (
classid == g_zclass_smoker) {
        if (
zv_get_user_flags(id) == 0) {
            
zp_class_zombie_menu_text_add("*VIP* only!")
            return 
ZP_CLASS_NOT_AVAILABLE;
        }
        else {
            
zp_class_zombie_menu_text_add("*VIP*")
            return 
ZP_CLASS_AVAILABLE;
        }
    }
    return 
ZP_CLASS_AVAILABLE;

4. For the second code, just add this part after the public zp_fw_core_infect_post(id) section:
PHP Code:
public zp_fw_class_zombie_select_pre(idclassid) {
    if (
classid == g_ZombieClassID) {
        if (
zv_get_user_flags(id) == 0) {
            
zp_class_zombie_menu_text_add("*VIP* only!")
            return 
ZP_CLASS_NOT_AVAILABLE;
        }
        else {
            
zp_class_zombie_menu_text_add("*VIP*")
            return 
ZP_CLASS_AVAILABLE;
        }
    }
    return 
ZP_CLASS_AVAILABLE;


Last edited by zmd94; 08-17-2014 at 18:58.
zmd94 is offline
 



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 13:07.


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