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

Subplugin Submission [ZP] Zombie VIP 1.9.1


Post New Thread Reply   
 
Thread Tools Display Modes
myusername
Senior Member
Join Date: Aug 2012
Old 11-17-2012 , 05:55   Re: [ZP] Zombie VIP 1.7.2
Reply With Quote #1091

Okay. Where can i find the old stable version? Because this newer version has a bugs or something?
myusername is offline
myusername
Senior Member
Join Date: Aug 2012
Old 11-18-2012 , 03:39   Re: [ZP] Zombie VIP 1.7.2
Reply With Quote #1092

Is there way to make donate only work with vips?
myusername is offline
aaarnas
Veteran Member
Join Date: Jun 2008
Location: Lithuania
Old 11-18-2012 , 12:23   Re: [ZP] Zombie VIP 1.7.2
Reply With Quote #1093

Older versions are buggy also and it has less features. It's outdated mod... so hard to support properly. Rewriting is the only way.

Didn't understand your question.
__________________
My plugins:
[ZP] ZM_VIP (v2.0.0 is comming. v1.9.1 BETA is out!)

aaarnas is offline
Kronic
Member
Join Date: Apr 2010
Location: U.S
Old 11-18-2012 , 12:27   Re: [ZP] Zombie VIP 1.7.2
Reply With Quote #1094

Quote:
Originally Posted by aaarnas View Post
Older versions are buggy also and it has less features. It's outdated mod... so hard to support properly. Rewriting is the only way.

Didn't understand your question.
This will continue to support ZP4.3 right? Not ZP5.0
Kronic is offline
aaarnas
Veteran Member
Join Date: Jun 2008
Location: Lithuania
Old 11-19-2012 , 05:50   Re: [ZP] Zombie VIP 1.7.2
Reply With Quote #1095

Both
__________________
My plugins:
[ZP] ZM_VIP (v2.0.0 is comming. v1.9.1 BETA is out!)

aaarnas is offline
myusername
Senior Member
Join Date: Aug 2012
Old 11-19-2012 , 08:35   Re: [ZP] Zombie VIP 1.7.2
Reply With Quote #1096

Quote:
Originally Posted by aaarnas View Post
Older versions are buggy also and it has less features. It's outdated mod... so hard to support properly. Rewriting is the only way.

Didn't understand your question.
Whitch means only vip players can use donate. And also i have few questions.
- How to remove the vip text in scoreboard?
- And how to make players can't purchase vip? (im using 3rd mode) Only admins can add vip. Which means no vip buying.
- And last one. Is there way to make command that add's vip player? Like amx_addadmin.
myusername is offline
Kronic
Member
Join Date: Apr 2010
Location: U.S
Old 11-23-2012 , 01:25   Re: [ZP] Zombie VIP 1.7.2
Reply With Quote #1097

Oh there's also a bug were players can still buy VIP for AP even if the mode is set to 1. I even removed it from the menu completely, setting the team = nothing and someone was still able to purchase VIP for 15AP some how. had to increase the cost to 100000 so no one could buy that way.
Kronic is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 11-23-2012 , 22:13   Re: [ZP] Zombie VIP 1.7.2
Reply With Quote #1098

How to make human class for VIP
Credits : aaarnas, Moody92

For the begginers ...

1. Find function zp_class_human_register:

PHP Code:
 g_HumanClassID zp_class_human_register(humanclass1_namehumanclass1_infohumanclass1_healthhumanclass1_speedhumanclass1_gravity
Take a variable g_HumanClassID ( It's depend on the human class )

2. Add this function in the top with includes:

PHP Code:
#include <zmvip> 
3. Add this function to your human class plugin:

PHP Code:
Public zp_fw_class_human_select_pre (idclassid) {
    
    if (
classid == g_HumanClassID) { 
        if (
zv_get_user_flags(id) == 0) { 
            
zp_class_human_menu_text_add("*VIP* only!")
            return 
ZP_CLASS_NOT_AVAILABLE
        } 
        else { 
            
zp_class_human_menu_text_add("(VIP)")
            return 
ZP_CLASS_AVAILABLE
        } 
    } 
    return 
ZP_CLASS_AVAILABLE

g_HumanClassID Should be same value as the default
if(zp_class_human_get_next(id) == g_HumanClassID) {

Example on Classic Human (default class) :

PHP Code:
/*================================================================================
    
    ----------------------------------
    -*- [ZP] Class: Human: Classic -*-
    ----------------------------------
    
    This plugin is part of Zombie Plague Mod and is distributed under the
    terms of the GNU General Public License. Check ZP_ReadMe.txt for details.
    
================================================================================*/

#include <amxmodx>
#include <zp50_class_human>
#include <zmvip>

// Classic Human Attributes
new const humanclass1_name[] = "VIP Human"
new const humanclass1_info[] = "Special class for VIPS"
new const humanclass1_models[][] = { "arctic" "guerilla" "leet" "terror" "gign" "gsg9" "sas" "urban" }
const 
humanclass1_health 100
const Float:humanclass1_speed 1.0
const Float:humanclass1_gravity 1.0

new g_HumanClassID

public plugin_precache()
{
    
register_plugin("[ZP] Class: Human: Classic"ZP_VERSION_STRING"ZP Dev Team")
    
    
g_HumanClassID zp_class_human_register(humanclass1_namehumanclass1_infohumanclass1_healthhumanclass1_speedhumanclass1_gravity)
    new 
index
    
for (index 0index sizeof humanclass1_modelsindex++)
        
zp_class_human_register_model(g_HumanClassIDhumanclass1_models[index])
}

public 
zp_fw_class_human_select_pre (idclassid) {
    
    if (
classid == g_HumanClassID) { 
        if (
zv_get_user_flags(id) == 0) { 
            
zp_class_human_menu_text_add("*VIP* only!")
            return 
ZP_CLASS_NOT_AVAILABLE
        } 
        else { 
            
zp_class_human_menu_text_add("(VIP)")
            return 
ZP_CLASS_AVAILABLE
        } 
    } 
    return 
ZP_CLASS_AVAILABLE


Last edited by wicho; 11-23-2012 at 23:24.
wicho is offline
myusername
Senior Member
Join Date: Aug 2012
Old 11-25-2012 , 05:06   Re: [ZP] Zombie VIP 1.7.2
Reply With Quote #1099

Quote:
Originally Posted by Kronic View Post
Oh there's also a bug were players can still buy VIP for AP even if the mode is set to 1. I even removed it from the menu completely, setting the team = nothing and someone was still able to purchase VIP for 15AP some how. had to increase the cost to 100000 so no one could buy that way.
same here
myusername is offline
UnN@m3D
Junior Member
Join Date: Nov 2012
Location: Romania
Old 11-25-2012 , 14:06   Re: [ZP] Zombie VIP 1.7.2
Reply With Quote #1100

i have a problem with custom vip items i have just added aan new item to menu , everything work fine until i buy it , it get ammo but i don't receive that item do annyone know why ? or should i post that plugin ?
UnN@m3D is offline
Send a message via Skype™ to UnN@m3D
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 06:04.


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