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

Subplugin Submission [ZP4.3+5.0] Addon: VIP Model


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 06-24-2013 , 04:06   [ZP4.3+5.0] Addon: VIP Model
Reply With Quote #1

[ZP4.3+5.0] Addon: VIP Model

I saw a lot of request of this plugin, so I made it ;)

NOTE:
- This plugin works only on ZP4.3 fix5 & ZP5.0.x.


If you want to make it working with ZP 4.3 or ZPA, just do the following steps:

1 - You need to download ZP 4.3 fix5
2 - Open zombie_plague40.sma from ZP 4.3 fix5, and search for "zp_override_user_model" and copy this line:

3 - Now go to your ZP 4.3 or ZPA sma and paste the line where the natives are registered, just like this:

4 - Go back to ZP 4.3 fix5 sma and copy this full function

5 - Now go to your ZP 4.3 or ZPA sma and paste the function after the functions of other natives like this:

6 - Save your ZP 4.3 or ZPA sma, now open ZP 4.3 fix5 inc, copy this:

7 - Go to your ZP 4.3 or ZPA inc file and paste it like this:

8 - Now just save your ZP 4.3 or ZPA inc file, and compile the VIP model plugin with them
Attached Files
File Type: sma Get Plugin or Get Source (zp_addon_vip_model.sma - 2941 views - 1.9 KB)
File Type: sma Get Plugin or Get Source (zp50_addon_vip_model.sma - 2146 views - 1.9 KB)

Last edited by TheDS1337; 12-23-2014 at 04:13.
TheDS1337 is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 06-24-2013 , 04:20   Re: [ZP4.3+5.0] Addon: VIP Model
Reply With Quote #2

This will work only in mode 3 or 1 , bro, ppl usually use mode 2, well, i'll make onefor that too

BTW: Add in description :- "This will work only in mode 3 or 1"
__________________
You will find everything u need :-
Catastrophe is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 06-24-2013 , 04:23   Re: [ZP4.3+5.0] Addon: VIP Model
Reply With Quote #3

Here is the version that will work on mode 2

ZP50
PHP Code:
#include < amxmodx >
#include < hamsandwich >
#include < cs_player_models_api >
#include < zp50_core >
#include < zp50_class_nemesis >
#include < zp50_class_survivor >

new g_pluginInfo[][] =
{
    
"[ZP50] Addon: VIP Model",
    
"1.0",
    
"De{a}gLe"
};

#define IsPlayer(%0) ( 1 <= (%0) <= get_maxplayers() ) // Thank you Connor !

new const g_vipModelHuman[][] = { "vip" };
new const 
g_vipModelZombie[][] = { "zombie_source" };

public 
plugin_precache()
{
    
register_pluging_pluginInfo[0], g_pluginInfo[1], g_pluginInfo[2] );
    
RegisterHamHam_Spawn"player""forwardClientSpawn_Post");
    
    static 
index;
    for (
index 0index sizeof g_vipModelHumanindex++ )
    {
        static 
patch[126];
        
formatexpatchsizeof patch"models/player/%s/%s.mdl"g_vipModelHuman[index], g_vipModelHuman[index] );
        
precache_modelpatch );
    }
    
    for (
index 0index sizeof g_vipModelZombieindex++ )
    {
        static 
patch[126];
        
formatexpatchsizeof patch"models/player/%s/%s.mdl"g_vipModelZombie[index], g_vipModelZombie[index] );
        
precache_modelpatch );
    }
}

public 
forwardClientSpawn_Postclientattacker )
{    
    if ( 
IsPlayer(client) && (get_user_flags(client) & ADMIN_LEVEL_H) )        
        
cs_set_player_modelclientg_vipModelHuman[random_num(0sizeof g_vipModelHuman  1)] );    
}

public 
zp_fw_core_cure_postclientsurvvior )
{
    if ( 
zp_class_survivor_get(client) )
        return 
PLUGIN_HANDLED;
        
    if ( 
IsPlayer(client) && (get_user_flags(client) & ADMIN_LEVEL_H) )    
        
cs_set_player_modelclientg_vipModelHuman[random_num(0sizeof g_vipModelHuman  1)] );
        
    return 
PLUGIN_CONTINUE;
}

public 
zp_fw_core_infect_postclientattacker )
{
    if ( 
zp_class_nemesis_get(client) )
        return 
PLUGIN_HANDLED;
        
    if ( 
IsPlayer(client) && (get_user_flags(client) & ADMIN_LEVEL_H) )    
        
cs_set_player_modelclientg_vipModelZombie[random_num(0sizeof g_vipModelZombie 1)] );
        
    return 
PLUGIN_CONTINUE;

ZP43
PHP Code:
#include < amxmodx >
#include < hamsandwich >
#include < zombieplague >

new g_pluginInfo[][] =
{
    
"[ZP] Addon: VIP Model",
    
"1.0",
    
"De{a}gLe"
};

#define IsPlayer(%0) ( 1 <= (%0) <= get_maxplayers() ) // Thank you Connor !

new const g_vipModelHuman[][] = { "vip" };
new const 
g_vipModelZombie[][] = { "zombie_source" };

public 
plugin_precache()
{
    
register_pluging_pluginInfo[0], g_pluginInfo[1], g_pluginInfo[2] );
    
RegisterHamHam_Spawn"player""forwardClientSpawn_Post");
    
    static 
index;
    for (
index 0index sizeof g_vipModelHumanindex++ )
    {
        static 
patch[126];
        
formatexpatchsizeof patch"models/player/%s/%s.mdl"g_vipModelHuman[index], g_vipModelHuman[index] );
        
precache_modelpatch );
    }
    
    for (
index 0index sizeof g_vipModelZombieindex++ )
    {
        static 
patch[126];
        
formatexpatchsizeof patch"models/player/%s/%s.mdl"g_vipModelZombie[index], g_vipModelZombie[index] );
        
precache_modelpatch );
    }
}

public 
forwardClientSpawn_Postclientattackergib )
{    
    if ( 
IsPlayer(client) && (get_user_flags(client) & ADMIN_LEVEL_H) )        
        
zp_override_user_modelclientg_vipModelHuman[random_num(0sizeof g_vipModelHuman  1)] );    
}

public 
zp_user_humanized_postclientsurvvior )
{
    if ( 
zp_get_user_survivor(client) )
        return 
ZP_PLUGIN_HANDLED;
        
    if ( 
IsPlayer(client) && (get_user_flags(client) & ADMIN_LEVEL_H) )    
        
zp_override_user_modelclientg_vipModelHuman[random_num(0sizeof g_vipModelHuman  1)] );
        
    return 
PLUGIN_CONTINUE;
}

public 
zp_user_infected_postclientinfectornemesis )
{
    if ( 
zp_get_user_nemesis(client) )
        return 
ZP_PLUGIN_HANDLED;
        
    if ( 
IsPlayer(client) && (get_user_flags(client) & ADMIN_LEVEL_H) )    
        
zp_override_user_modelclientg_vipModelZombie[random_num(0sizeof g_vipModelZombie 1)] );
        
    return 
PLUGIN_CONTINUE;

__________________
You will find everything u need :-
Catastrophe is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 06-24-2013 , 04:56   Re: [ZP4.3+5.0] Addon: VIP Model
Reply With Quote #4

This will work, if use have access 'a' in vips.ini
TheDS1337 is offline
Catastrophe
Veteran Member
Join Date: Jul 2012
Location: somewhere between narnia
Old 06-24-2013 , 07:57   Re: [ZP4.3+5.0] Addon: VIP Model
Reply With Quote #5

my code will work if user has access "t" in user.ini that is the default VIP flag.....

Also, your code wont, cuz in mode 2, there is no such native as "zv_get_user_flags"
__________________
You will find everything u need :-
Catastrophe is offline
wicho
Veteran Member
Join Date: Feb 2012
Location: GuateAmala
Old 06-24-2013 , 13:11   Re: [ZP4.3+5.0] Addon: VIP Model
Reply With Quote #6

GJ, i test this later...
wicho is offline
WaLkMaN
Senior Member
Join Date: Oct 2010
Location: Varna, Bulgaria
Old 06-24-2013 , 16:32   Re: [ZP4.3+5.0] Addon: VIP Model
Reply With Quote #7

GJ bro (btw this native zp_override_user_model() is easy to transfer into other zp like zpa)

And you forgot ZP 4.3 Fix3 and Fix4 ))

Last edited by WaLkMaN; 06-24-2013 at 16:34.
WaLkMaN is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 06-24-2013 , 17:29   Re: [ZP4.3+5.0] Addon: VIP Model
Reply With Quote #8

Quote:
Originally Posted by WaLkMaN View Post
GJ bro (btw this native zp_override_user_model() is easy to transfer into other zp like zpa)

And you forgot ZP 4.3 Fix3 and Fix4 ))
Ahaha, Thank you bro ;)
I didn't forget them, but I developed the default ;)
TheDS1337 is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 07-10-2013 , 06:58   Re: [ZP4.3+5.0] Addon: VIP Model
Reply With Quote #9

can any 1 make this for zombie plague advanced

thnx in advance
JusTGo is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 07-14-2013 , 11:22   Re: [ZP4.3+5.0] Addon: VIP Model
Reply With Quote #10

Quote:
Originally Posted by JusTGo View Post
can any 1 make this for zombie plague advanced

thnx in advance
umm, if you want it for ZPA, you'll need to copy the native from ZP 4.3 Fix5 to it.

Last edited by TheDS1337; 07-14-2013 at 11:23.
TheDS1337 is offline
Reply


Thread Tools
Display Modes

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 00:48.


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