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

Subplugin Submission [ZP] List of VIP Zombie Classes


Post New Thread Reply   
 
Thread Tools Display Modes
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-19-2016 , 03:42   Re: [ZP] List of VIP Zombie Classes
Reply With Quote #31

When normal player selected this VIP class, can they use it?
zmd94 is offline
Night Wolf90
Member
Join Date: Jan 2016
Old 07-19-2016 , 05:09   Re: [ZP] List of VIP Zombie Classes
Reply With Quote #32

Quote:
Originally Posted by zmd94 View Post
When normal player selected this VIP class, can they use it?
yes normal player can us it
and do not show massage in menu "*vip* only"

Last edited by Night Wolf90; 07-19-2016 at 10:38.
Night Wolf90 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-20-2016 , 04:48   Re: [ZP] List of VIP Zombie Classes
Reply With Quote #33

Just try to change below:
Code:
public zv_fw_class_zombie_select_pre(id, classid) {
    if (classid == g_ZombieClassID) {
        if (zp_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;
}
-->
Code:
public zv_fw_class_zombie_select_pre(id, classid) 
{
    if (classid == g_ZombieClassID) 
    {
        if(zv_get_user_flags(id)) 
        {
            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; 07-21-2016 at 10:43.
zmd94 is offline
Night Wolf90
Member
Join Date: Jan 2016
Old 07-20-2016 , 04:51   Re: [ZP] List of VIP Zombie Classes
Reply With Quote #34

Quote:
Originally Posted by zmd94 View Post
Just try to change below:
Code:
public zv_fw_class_zombie_select_pre(id, classid) {
    if (classid == g_ZombieClassID) {
        if (zp_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;
}
-->
Code:
public zv_fw_class_zombie_select_pre(id, classid) 
{
    if (classid == g_ZombieClassID) 
    {
        if (zp_get_user_flags(id)) 
        {
            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;
}
compiled fiald

other problem this class select normal player but this class for vip player!!?
PHP Code:
//// zp50_class_zombie_dragon.sma
//
// F:\Zombie Server\cstrike\addons\amxmodx\scripting\zp50_class_zombie_dragon.sma(51) : error 017: undefined symbol "zp_get_user_flags"
//
// 1 Error.
// Could not locate output file compiled\zp50_class_zombie_dragon.amx (compile failed).
//
// Compilation Time: 0.5 sec 

Last edited by Night Wolf90; 07-20-2016 at 04:57.
Night Wolf90 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-21-2016 , 10:44   Re: [ZP] List of VIP Zombie Classes
Reply With Quote #35

Code updated:

https://forums.alliedmods.net/showpo...3&postcount=33
zmd94 is offline
Night Wolf90
Member
Join Date: Jan 2016
Old 07-21-2016 , 18:19   Re: [ZP] List of VIP Zombie Classes
Reply With Quote #36

Quote:
Originally Posted by zmd94 View Post
compile plugin but normal player select this class and not show "vip only"
plz Review full code zombie class plz and edit this code If it's okay
i am friend dr mohammad plz help me for class plz zmd94 plz
Night Wolf90 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-21-2016 , 22:47   Re: [ZP] List of VIP Zombie Classes
Reply With Quote #37

After updated the code, when normal player selected this VIP class, can they use it?
zmd94 is offline
Night Wolf90
Member
Join Date: Jan 2016
Old 07-22-2016 , 12:33   Re: [ZP] List of VIP Zombie Classes
Reply With Quote #38

Quote:
Originally Posted by zmd94 View Post
After updated the code, when normal player selected this VIP class, can they use it?
Hi

I solve This problem!!
Tanx very Tanx for help!!
Night Wolf90 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 07-23-2016 , 00:01   Re: [ZP] List of VIP Zombie Classes
Reply With Quote #39

Nice.
zmd94 is offline
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 13:09.


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