+- +-

+-User

Welcome, Guest.
Please login or register.
 
 
 

Login with your social network

Forgot your password?

Author Topic: [ZP] VIP Model  (Read 222 times)

0 Members and 1 Guest are viewing this topic.

DON KHAN

  • My Bio
  • FoundeR
  • Hero Member
  • *****
  • Posts: 5046
  • Karma: +0/-0
  • Gender: Male
  • Scriptor, Model Editor, Bug Fixer And Student
  • Location: Karachi
    • View Profile
    • Ro{Y}aL WarLanD Community
[ZP] VIP Model
« on: June 17, 2019, 08:57:35 am »
Hello Guys.

I Saw Lot Of Request In Facebook For The VIP Model Working In ZP Mod.

So I Decided To Script The Plugin.

The Code Is Here.

Code: [Select]
#include < amxmodx >
#include < hamsandwich >
#include < zombieplague >
#include < zmvip >

new g_pluginInfo[][] =
{
"[ZP] Addon: VIP Model",
"1.2",
"DON KHAN"
};

#define IsPlayer(%0) ( 1 <= (%0) <= get_maxplayers() )

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

public plugin_precache()
{
register_plugin( g_pluginInfo[0], g_pluginInfo[1], g_pluginInfo[2] );
RegisterHam( Ham_Spawn, "player", "forwardClientSpawn_Post", 1 );

static index;
for (index = 0; index < sizeof g_vipModelHuman; index++ )
{
static patch[126];
formatex( patch, sizeof patch, "models/player/%s/%s.mdl", g_vipModelHuman[index], g_vipModelHuman[index] );
precache_model( patch );
}

}

public forwardClientSpawn_Post( client, attacker, gib )
{
if ( IsPlayer(client) && (zv_get_user_flags(client) & ZV_MAIN) )
zp_override_user_model( client, g_vipModelHuman[random_num(0, sizeof g_vipModelHuman  - 1)] );
}

public zp_user_humanized_post( client, survvior )
{
if ( zp_get_user_survivor(client) )
return ZP_PLUGIN_HANDLED;

if ( IsPlayer(client) && (zv_get_user_flags(client) & ZV_MAIN) )
zp_override_user_model( client, g_vipModelHuman[random_num(0, sizeof g_vipModelHuman  - 1)] );

return PLUGIN_CONTINUE;
}

You Can Change The VIP Skin Model Name By
Code: [Select]
new const g_vipModelHuman[][] = { "vip" };
>>>>

Code: [Select]
new const g_vipModelHuman[][] = { "Your_Skin_Name" };
Put Your Skin Name Without Space Like This VIPSkin Or VIP_Skin.

Well Hope You Guys Like My This Plugin.

Thank You
Selling Mods.
PM Me If You Want Any Plugin.
Facebook:- https://www.facebook.com/cs.pro.usman
Youtube:- PC Gaming And Technology With Usman
My Introduction:- Muslim, Student, Scriptor At Counter Strike 1.6, Bug Fixer And Model Editor.
To Download Any Game Visit Here:- http://crazygamers.ucoz.net/

Share on Facebook Share on Twitter


 

+-Recent Topics

5 ways to make money from playing games by Martha Louise
February 21, 2023, 01:47:19 am

Need mod :/ by bacem
October 13, 2019, 05:49:09 am

Rules by DON KHAN
August 28, 2019, 01:50:29 pm

[REQ] VIP are knife and all see this by DON KHAN
August 20, 2019, 12:56:37 pm

Advance VIP Menu [Public, CSDM & Furien] by DON KHAN
June 22, 2019, 11:50:05 am

For Umbrella Swarm mod by DON KHAN
June 22, 2019, 08:13:26 am

[ZP] VIP Model by DON KHAN
June 17, 2019, 08:57:35 am

[ZP] SVIP Plugin by DON KHAN
June 13, 2019, 11:43:24 am

Updates / Helpful BBC Codes For Your Post by DON KHAN
June 09, 2019, 03:01:39 am

BHOP Script by DON KHAN
June 08, 2019, 01:40:41 pm