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

[ZP] Make VIP zombie Class


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lianmark0909
Junior Member
Join Date: Apr 2014
Old 11-14-2014 , 07:47   [ZP] Make VIP zombie Class
Reply With Quote #1

Hi guys can any one make this class to vip?
And When Non-VIP try to use this class is will write in chat "*green color*[ZP] *normal color* You Are Not VIP member
Attached Files
File Type: sma Get Plugin or Get Source (zp50_class_zombie_leech.sma - 853 views - 3.4 KB)

Last edited by lianmark0909; 11-14-2014 at 07:49.
lianmark0909 is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 11-14-2014 , 08:26   Re: [ZP] Make VIP zombie Class
Reply With Quote #2

https://forums.alliedmods.net/showpo...&postcount=171
Depresie is offline
lianmark0909
Junior Member
Join Date: Apr 2014
Old 11-14-2014 , 10:47   Re: [ZP] Make VIP zombie Class
Reply With Quote #3

Quote:
Originally Posted by Depresie View Post
i tryid allot of times i dont know how to do this ! pls help me ..
lianmark0909 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 11-14-2014 , 11:01   Re: [ZP] Make VIP zombie Class
Reply With Quote #4

What type of plugin that you used for the VIP system in your server?
zmd94 is offline
lianmark0909
Junior Member
Join Date: Apr 2014
Old 11-14-2014 , 14:02   Re: [ZP] Make VIP zombie Class
Reply With Quote #5

Quote:
Originally Posted by zmd94 View Post
What type of plugin that you used for the VIP system in your server?
ZM_VIP v1.7.2
lianmark0909 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 11-14-2014 , 18:35   Re: [ZP] Make VIP zombie Class
Reply With Quote #6

Just open that .sma file, then add this code:
PHP Code:
#include <zmvip>

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; 11-14-2014 at 18:37.
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 14:20.


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