Raised This Month: $ Target: $400
 0% 

Help Classes VIP Base Builder


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
anonymus1377
Junior Member
Join Date: Mar 2012
Old 03-05-2012 , 04:44   Help Classes VIP Base Builder
Reply With Quote #1

Original plugin: http://forums.alliedmods.net/showthread.php?p=1198524

PHP Code:
/*================================================================================
    
    -----------------------------------
    -*- [BB] Default Zombie Classes -*-
    -----------------------------------
    
    ~~~~~~~~~~~~~~~
    - Description -
    ~~~~~~~~~~~~~~~
    
    This plugin adds the default zombie classes from Zombie Plague
    into Base Builder. All credit belongs to MeRcyLeZZ.
    
    All classes have been balanced, but feel free to edit them if
    you are not satisfied.
    
================================================================================*/

#include <amxmodx>
#include <basebuilder>
#include <hamsandwich>
#include <fun>
#include <cstrike>

/*================================================================================
 [Plugin Customization]
=================================================================================*/

// Classic Zombie Attributes
new const zclass1_name[] = { "Classic Zombie" }
new const 
zclass1_info[] = { "=Balanced=" }
new const 
zclass1_model[] = { "bb_classic" }
new const 
zclass1_clawmodel[] = { "v_bloodyhands" }
const 
zclass1_health 3000
const zclass1_speed 260
const Float:zclass1_gravity 1.0
const zclass1_adminflags ADMIN_ALL

// Fast Zombie Attributes
new const zclass2_name[] = { "Fast Zombie" }
new const 
zclass2_info[] = { "HP-- Speed++" }
new const 
zclass2_model[] = { "bb_fast" }
new const 
zclass2_clawmodel[] = { "v_bloodyhands" }
const 
zclass2_health 2000
const zclass2_speed 325
const Float:zclass2_gravity 1.0
const zclass2_adminflags ADMIN_ALL

// Jumper Zombie Attributes
new const zclass3_name[] = { "Jumper Zombie" }
new const 
zclass3_info[] = { "HP- Jump+" }
new const 
zclass3_model[] = { "bb_jumper" }
new const 
zclass3_clawmodel[] = { "v_bloodyhands" }
const 
zclass3_health 2500
const zclass3_speed 285
const Float:zclass3_gravity 0.5
const zclass3_adminflags ADMIN_ALL

// Tanker Zombie Attributes
new const zclass4_name[] = { "Tanker Zombie" }
new const 
zclass4_info[] = { "HP++ Speed-" }
new const 
zclass4_model[] = { "bb_tanker" }
new const 
zclass4_clawmodel[] = { "v_bloodyhands" }
const 
zclass4_health 4000
const zclass4_speed 210
const Float:zclass4_gravity 1.0
const zclass4_adminflags ADMIN_ALL
#define TANK_ARMOR 200

/*============================================================================*/

new g_zclass_tanker

// Zombie Classes MUST be registered on plugin_precache
public plugin_precache()
{
    
register_plugin("[BB] Default Zombie Classes""6.5""Tirant")
    
    
// Register all classes
    
bb_register_zombie_class(zclass1_namezclass1_infozclass1_modelzclass1_clawmodelzclass1_healthzclass1_speedzclass1_gravity0.0zclass1_adminflags)
    
bb_register_zombie_class(zclass2_namezclass2_infozclass2_modelzclass2_clawmodelzclass2_healthzclass2_speedzclass2_gravity0.0zclass2_adminflags)
    
bb_register_zombie_class(zclass3_namezclass3_infozclass3_modelzclass3_clawmodelzclass3_healthzclass3_speedzclass3_gravity0.0zclass3_adminflags)
    
g_zclass_tanker bb_register_zombie_class(zclass4_namezclass4_infozclass4_modelzclass4_clawmodelzclass4_healthzclass4_speedzclass4_gravity0.0zclass4_adminflags)
}

#if defined TANK_ARMOR
public plugin_init()
{
    
RegisterHam(Ham_Spawn"player""ham_PlayerSpawn_Post"1)
}

public 
ham_PlayerSpawn_Post(id)
{
    if (!
is_user_alive(id))
        return ;
        
    if (
bb_is_user_zombie(id) && bb_get_user_zombie_class(id) == g_zclass_tanker)
    {
        
give_item(id"item_assaultsuit");
        
cs_set_user_armor(idTANK_ARMORCS_ARMOR_VESTHELM);
    }
}
#endif 
Want the Jumper Zombie class is only for VIPs, and if possible try to choose this kind of zombie that says that is not possible that you have to buy VIP.

Can someone help?

FLAG VIP = ADMIN_RESERVATION

Last edited by anonymus1377; 03-05-2012 at 04:45.
anonymus1377 is offline
VIP111
New Member
Join Date: Feb 2012
Old 03-05-2012 , 10:16   Re: Help Classes VIP Base Builder
Reply With Quote #2

PHP Code:
/*================================================================================
    
    -----------------------------------
    -*- [BB] Default Zombie Classes -*-
    -----------------------------------
    
    ~~~~~~~~~~~~~~~
    - Description -
    ~~~~~~~~~~~~~~~
    
    This plugin adds the default zombie classes from Zombie Plague
    into Base Builder. All credit belongs to MeRcyLeZZ.
    
    All classes have been balanced, but feel free to edit them if
    you are not satisfied.
    
================================================================================*/

#include <amxmodx>
#include <basebuilder>
#include <hamsandwich>
#include <fun>
#include <cstrike>

/*================================================================================
 [Plugin Customization]
=================================================================================*/

// Classic Zombie Attributes
new const zclass1_name[] = { "Morte Zombie" }
new const 
zclass1_info[] = { "Equilibrado" }
new const 
zclass1_model[] = { "asr_morte" }
new const 
zclass1_clawmodel[] = { "v_asr_morte" }
const 
zclass1_health 5000
const zclass1_speed 260
const Float:zclass1_gravity 1.0
const zclass1_adminflags ADMIN_ALL

// Fast Zombie Attributes
new const zclass2_name[] = { "Doutor Zombie" }
new const 
zclass2_info[] = { "Rapido" }
new const 
zclass2_model[] = { "asr_doutor" }
new const 
zclass2_clawmodel[] = { "v_asr_doutor" }
const 
zclass2_health 4000
const zclass2_speed 328
const Float:zclass2_gravity 1.0
const zclass2_adminflags ADMIN_ALL

// Jumper Zombie Attributes
new const zclass3_name[] = { "Zombie Saltador" }
new const 
zclass3_info[] = { "Salta um pouco" }
new const 
zclass3_model[] = { "asr_saltador" }
new const 
zclass3_clawmodel[] = { "v_asr_saltador" }
const 
zclass3_health 4500
const zclass3_speed 285
const Float:zclass3_gravity 0.5
const zclass3_adminflags ADMIN_ALL

// Tanker Zombie Attributes
new const zclass4_name[] = { "Zombie Gordo" }
new const 
zclass4_info[] = { "Muita Vida" }
new const 
zclass4_model[] = { "asr_gordo" }
new const 
zclass4_clawmodel[] = { "v_asr_gordo" }
const 
zclass4_health 6000
const zclass4_speed 210
const Float:zclass4_gravity 1.0
const zclass4_adminflags ADMIN_ALL
#define TANK_ARMOR 200

// Vip Zombie Attributes
new const zclass5_name[] = { "Monster Zombie" }
new const 
zclass5_info[] = { "Salta e Rapido" }
new const 
zclass5_model[] = { "asr_zm_vip" }
new const 
zclass5_clawmodel[] = { "v_asr_zm_vip" }
const 
zclass5_health 4800
const zclass5_speed 328
const Float:zclass5_gravity 0.5
const zclass5_adminflags ADMIN_LEVEL_H

/*============================================================================*/

new g_zclass_tanker

// Zombie Classes MUST be registered on plugin_precache
public plugin_precache()
{
    
register_plugin("[BB] Default Zombie Classes""6.5""Tirant")
    
    
// Register all classes
    
bb_register_zombie_class(zclass1_namezclass1_infozclass1_modelzclass1_clawmodelzclass1_healthzclass1_speedzclass1_gravity0.0zclass1_adminflags)
    
bb_register_zombie_class(zclass2_namezclass2_infozclass2_modelzclass2_clawmodelzclass2_healthzclass2_speedzclass2_gravity0.0zclass2_adminflags)
    
bb_register_zombie_class(zclass3_namezclass3_infozclass3_modelzclass3_clawmodelzclass3_healthzclass3_speedzclass3_gravity0.0zclass3_adminflags)
    
g_zclass_tanker bb_register_zombie_class(zclass4_namezclass4_infozclass4_modelzclass4_clawmodelzclass4_healthzclass4_speedzclass4_gravity0.0zclass4_adminflags)
bb_register_zombie_class(zclass5_namezclass5_infozclass5_modelzclass5_clawmodelzclass5_healthzclass5_speedzclass5_gravity0.0zclass5_adminflags)
}

#if defined TANK_ARMOR
public plugin_init()
{
    
RegisterHam(Ham_Spawn"player""ham_PlayerSpawn_Post"1)
}

public 
ham_PlayerSpawn_Post(id)
{
    if (!
is_user_alive(id))
        return ;
        
    if (
bb_is_user_zombie(id) && bb_get_user_zombie_class(id) == g_zclass_tanker)
    {
        
give_item(id"item_assaultsuit");
        
cs_set_user_armor(idTANK_ARMORCS_ARMOR_VESTHELM);
    }
}
#endif 

Last edited by Exolent[jNr]; 03-05-2012 at 11:15. Reason: Added [php] tags.
VIP111 is offline
NooB4o
New Member
Join Date: Feb 2013
Old 03-01-2013 , 05:33   Re: Help Classes VIP Base Builder
Reply With Quote #3

Where I can find VIP zombie plugin!?
NooB4o is offline
kikizon2
Senior Member
Join Date: Jan 2013
Old 03-05-2013 , 14:53   Re: Help Classes VIP Base Builder
Reply With Quote #4

not exactly for VIP is for admin

replace this

PHP Code:
const zclass3_adminflags ADMIN_ALL 
for this
PHP Code:
const zclass3_adminflags ADMIN_LEVEL_A 
Sorry by my bad English

Last edited by kikizon2; 03-05-2013 at 14:55.
kikizon2 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 06:39.


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