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

[HELP] VIP FLAG MODEL + ADD Owner Flag


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cheezpuff
BANNED
Join Date: Oct 2012
Location: City of the Dead
Old 08-27-2013 , 17:25   [HELP] VIP FLAG MODEL + ADD Owner Flag
Reply With Quote #1

fixed

Last edited by Cheezpuff; 09-01-2013 at 18:39. Reason: help?
Cheezpuff is offline
Send a message via Skype™ to Cheezpuff
Baws
Veteran Member
Join Date: Oct 2012
Old 08-28-2013 , 01:55   Re: [HELP] VIP FLAG MODEL + ADD Owner Flag
Reply With Quote #2

Quote:
Originally Posted by Cheezpuff View Post
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_KICK //changed this to KICK // 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 = 330 const Float:zclass2_gravity = 1.0 const zclass2_adminflags = ADMIN_KICK //changed this to KICK // 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_KICK //changed this to KICK // 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_KICK //changed this to KICK #define TANK_ARMOR 200 // Dirty Zombie Attributes new const zclass5_name[] = { "Dirty Zombie" } new const zclass5_info[] = { "Jump+ HP++" } new const zclass5_model[] = { "bb_dirty" } new const zclass5_clawmodel[] = { "v_bloodyhands" } const zclass5_health = 4600 const zclass5_speed = 250 const Float:zclass5_gravity = 0.7 const zclass5_adminflags = ADMIN_KICK //changed this to KICK /*============================================================================*/ 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_name, zclass1_info, zclass1_model, zclass1_clawmodel, zclass1_health, zclass1_speed, zclass1_gravity, 0.0, zclass1_adminflags)     bb_register_zombie_class(zclass2_name, zclass2_info, zclass2_model, zclass2_clawmodel, zclass2_health, zclass2_speed, zclass2_gravity, 0.0, zclass2_adminflags)     bb_register_zombie_class(zclass3_name, zclass3_info, zclass3_model, zclass3_clawmodel, zclass3_health, zclass3_speed, zclass3_gravity, 0.0, zclass3_adminflags)     g_zclass_tanker = bb_register_zombie_class(zclass4_name, zclass4_info, zclass4_model, zclass4_clawmodel, zclass4_health, zclass4_speed, zclass4_gravity, 0.0, zclass4_adminflags)     bb_register_zombie_class(zclass5_name, zclass5_info, zclass5_model, zclass5_clawmodel, zclass5_health, zclass3_speed, zclass5_gravity, 0.0, zclass5_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(id, TANK_ARMOR, CS_ARMOR_VESTHELM);     } } #endif
I think just whenever you add a class, just put this
Code:
ADMIN_KICK

instead of this
Code:
ADMIN_ALL
__________________
Like my clean plugins and work?

Last edited by Baws; 08-28-2013 at 01:56.
Baws is offline
Cheezpuff
BANNED
Join Date: Oct 2012
Location: City of the Dead
Old 08-28-2013 , 02:23   Re: [HELP] VIP FLAG MODEL + ADD Owner Flag
Reply With Quote #3

Quote:
Originally Posted by baws View Post
I think just whenever you add a class, just put this
Code:
ADMIN_KICK


instead of this
Code:
ADMIN_ALL
i think too. i have will check it today, i just on from Phone

but how can that Show in Menu Only Admin
i have it basebuilder65.sma

PHP Code:
public show_zclass_menu(id,offset)
{
    if(
offset<0offset 0

    
new keyscurnummenu[512], szCache1[32], szCache2[32], iCache3
    
for(new i=offset;i<g_iZClasses;i++)
    {
        
ArrayGetString(g_zclass_nameiszCache1charsmax(szCache1))
        
ArrayGetString(g_zclass_infoiszCache2charsmax(szCache2))
        
iCache3 ArrayGetCell(g_zclass_admini)
        
        
// Add to menu
        
if (== g_iZombieClass[id])
            
format(menu,511,"%s^n\d%d. %s \r[ \w%s %s \r]"menucurnum+1szCache1szCache2iCache3 == ADMIN_ALL "" "(Admin Only)")
        else
            
format(menu,511,"%s^n\w%d.%s \r[ \w%s %s \r]"menucurnum+1szCache1szCache2iCache3 == ADMIN_ALL "" "(Admin Only)")    
        
        
g_iMenuOptions[id][curnum] = i
        keys 
+= (1<<curnum)
    
        
curnum++
        
        if(
curnum==8)
            break;
    } 
what that mean?
or dont need change here nothing?

Last edited by Cheezpuff; 08-28-2013 at 02:25.
Cheezpuff is offline
Send a message via Skype™ to Cheezpuff
Baws
Veteran Member
Join Date: Oct 2012
Old 08-28-2013 , 02:44   Re: [HELP] VIP FLAG MODEL + ADD Owner Flag
Reply With Quote #4

Quote:
Originally Posted by Cheezpuff View Post
i think too. i have will check it today, i just on from Phone

but how can that Show in Menu Only Admin
i have it basebuilder65.sma

PHP Code:
public show_zclass_menu(id,offset)
{
    if(
offset<0offset 0

    
new keyscurnummenu[512], szCache1[32], szCache2[32], iCache3
    
for(new i=offset;i<g_iZClasses;i++)
    {
        
ArrayGetString(g_zclass_nameiszCache1charsmax(szCache1))
        
ArrayGetString(g_zclass_infoiszCache2charsmax(szCache2))
        
iCache3 ArrayGetCell(g_zclass_admini)
        
        
// Add to menu
        
if (== g_iZombieClass[id])
            
format(menu,511,"%s^n\d%d. %s \r[ \w%s %s \r]"menucurnum+1szCache1szCache2iCache3 == ADMIN_ALL "" "(Admin Only)")
        else
            
format(menu,511,"%s^n\w%d.%s \r[ \w%s %s \r]"menucurnum+1szCache1szCache2iCache3 == ADMIN_ALL "" "(Admin Only)")    
        
        
g_iMenuOptions[id][curnum] = i
        keys 
+= (1<<curnum)
    
        
curnum++
        
        if(
curnum==8)
            break;
    } 
what that mean?
or dont need change here nothing?


Code:
public show_zclass_menu(id,offset) {     if(offset<0) offset = 0     new keys, curnum, menu[512], szCache1[32], szCache2[32], iCache3     for(new i=offset;i<g_iZClasses;i++)     {         ArrayGetString(g_zclass_name, i, szCache1, charsmax(szCache1))         ArrayGetString(g_zclass_info, i, szCache2, charsmax(szCache2))         iCache3 = ArrayGetCell(g_zclass_admin, i)                 // Add to menu         if (i == g_iZombieClass[id])             format(menu,511,"%s^n\d%d. %s \r[ \w%s %s \r]", menu, curnum+1, szCache1, szCache2, iCache3 == ADMIN_KICK ? "" : "(Admin Only)") // Here changed         else             format(menu,511,"%s^n\w%d.%s \r[ \w%s %s \r]", menu, curnum+1, szCache1, szCache2, iCache3 == ADMIN_KICK ? "" : "(Admin Only)") // Here changed                 g_iMenuOptions[id][curnum] = i         keys += (1<<curnum)             curnum++                 if(curnum==8)             break;     }
__________________
Like my clean plugins and work?

Last edited by Baws; 08-28-2013 at 02:45.
Baws is offline
Old 08-28-2013, 02:51
Cheezpuff
This message has been deleted by Cheezpuff. Reason: fixed, thanks for help.
Baws
Veteran Member
Join Date: Oct 2012
Old 08-28-2013 , 12:12   Re: [HELP] VIP FLAG MODEL + ADD Owner Flag
Reply With Quote #5

I guess you need to define at this point.

PHP Code:
#define ADMIN_LEVEL  ADMIN_BAN
#define ADMIN_FLAG   ADMIN_KICK 
Like that and whenever you want the menu to be only for VIP you add
PHP Code:
ADMIN_FLAG 
ADMIN_FLAG gives the ADMIN_KICK so it's VIP. Now whenever you want the ban flag (Admin) to the menu. You put this.
PHP Code:
ADMIN_LEVEL 
Working? Or you just put here
PHP Code:
 if (== g_iZombieClass[id])
            
format(menu,511,"%s^n\d%d.%s \r[ \w%s %s \r]"menucurnum+1szCache1szCache2iCache3 == ADMIN_ALL "" "VIP+ Only")
        else
            
format(menu,511,"%s^n\w%d.%s \r[ \w%s %s \r]"menucurnum+1szCache1szCache2iCache3 == ADMIN_ALL "" "VIP+ Only")    
        else
            
format(menu,511,"%s^n\w%d.%s \r[ \w%s %s \r]"menucurnum+1szCache1szCache2iCache3 == ADMIN_ALL "" "Manager+ Only"


PHP Code:
 if (== g_iZombieClass[id])
            
format(menu,511,"%s^n\d%d.%s \r[ \w%s %s \r]"menucurnum+1szCache1szCache2iCache3 == ADMIN_BAN "" "VIP+ Only"//this to ban
        
else
            
format(menu,511,"%s^n\w%d.%s \r[ \w%s %s \r]"menucurnum+1szCache1szCache2iCache3 == ADMIN_BAN "" "VIP+ Only"//this to ban
        
else
            
format(menu,511,"%s^n\w%d.%s \r[ \w%s %s \r]"menucurnum+1szCache1szCache2iCache3 == ADMIN_BAN "" "Manager+ Only"//this to ban 
__________________
Like my clean plugins and work?

Last edited by Baws; 08-28-2013 at 12:14.
Baws is offline
Cheezpuff
BANNED
Join Date: Oct 2012
Location: City of the Dead
Old 08-28-2013 , 13:33   Re: [HELP] VIP FLAG MODEL + ADD Owner Flag
Reply With Quote #6

My mistake I opened this Thread.
I understand some programming, and at the end I found I built what I wanted.

Last edited by Cheezpuff; 08-28-2013 at 13:33.
Cheezpuff is offline
Send a message via Skype™ to Cheezpuff
Jonathaan
New Member
Join Date: Sep 2013
Old 09-28-2013 , 15:17   Re: [HELP] VIP FLAG MODEL + ADD Owner Flag
Reply With Quote #7

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

-----------------------------------
-*- [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_KICK //changed this to KICK

// 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 = 330
const Float:zclass2_gravity = 1.0
const zclass2_adminflags = ADMIN_KICK //changed this to KICK

// 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_KICK //changed this to KICK

// 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_KICK //changed this to KICK
#define TANK_ARMOR 200

// Dirty Zombie Attributes
new const zclass5_name[] = { "Dirty Zombie" }
new const zclass5_info[] = { "Jump+ HP++" }
new const zclass5_model[] = { "bb_dirty" }
new const zclass5_clawmodel[] = { "v_bloodyhands" }
const zclass5_health = 4600
const zclass5_speed = 250
const Float:zclass5_gravity = 0.7
const zclass5_adminflags = ADMIN_KICK //changed this to KICK

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

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_name, zclass1_info, zclass1_model, zclass1_clawmodel, zclass1_health, zclass1_speed, zclass1_gravity, 0.0, zclass1_adminflags)
bb_register_zombie_class(zclass2_name, zclass2_info, zclass2_model, zclass2_clawmodel, zclass2_health, zclass2_speed, zclass2_gravity, 0.0, zclass2_adminflags)
bb_register_zombie_class(zclass3_name, zclass3_info, zclass3_model, zclass3_clawmodel, zclass3_health, zclass3_speed, zclass3_gravity, 0.0, zclass3_adminflags)
g_zclass_tanker = bb_register_zombie_class(zclass4_name, zclass4_info, zclass4_model, zclass4_clawmodel, zclass4_health, zclass4_speed, zclass4_gravity, 0.0, zclass4_adminflags)
bb_register_zombie_class(zclass5_name, zclass5_info, zclass5_model, zclass5_clawmodel, zclass5_health, zclass3_speed, zclass5_gravity, 0.0, zclass5_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(id, TANK_ARMOR, CS_ARMOR_VESTHELM);
}
}
#endif
Jonathaan 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 19:31.


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