Veteran Member
Join Date: Sep 2019
Location: Egypt
|
09-14-2022
, 02:17
Re: [REQ] XP For BB Zombies
|
#2
|
I used OciXCrom's ranking system because the plugin that you attached does not contain natives
Need to replace this code in the include file
PHP Code:
bb_register_zombie_class(const name[], const info[], const model[], const clawmodel[], hp, speed, Float:gravity, Float:knockback, adminflags, credits)
To
PHP Code:
bb_register_zombie_class(const name[], const info[], const model[], const clawmodel[], hp, speed, Float:gravity, xp, adminflags, credits = 0 )
-> Classes:
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
#include <basebuilder>
enum _:eRegisterZombies
{
Name[ 32 ],
Info[ 32 ],
Model[ 64 ],
ClawModel[ 64 ],
Health,
Speed,
Float:Gravity,
XP,
Access
}
new const g_szZombie[ ][eRegisterZombies] =
{
{ "Clasic", ">>Balanced<<", "bb_clasic", "v_bloodyhands", 4000, 260, 1.0, 0, ADMIN_ALL },
{ "Fast Zombie", "Speed++", "bb_fast", "v_bloodyhands", 3500, 325, 1.0, 500, ADMIN_ALL },
{ "Jumper Zombie", "Jump++", "bb_jumper", "v_bloodyhands", 4300, 285, 0.5, 1200, ADMIN_ALL },
{ "Tanker Zombie", "VESTHELM", "bb_tanker", "v_bloodyhands", 5000, 210, 1.0, 1600, ADMIN_ALL },
}
public plugin_precache( )
{
register_plugin("BaseBuilder: ZClasses", "1.0", "Supremache");
for( new i; i < sizeof( g_szZombie ); i++ )
{
g_szZombie[ i ][ 0 ] = bb_register_zombie_class
(
g_szZombie[ i ][ Name ],
g_szZombie[ i ][ Info ],
g_szZombie[ i ][ Model ],
g_szZombie[ i ][ ClawModel ],
g_szZombie[ i ][ Health ],
g_szZombie[ i ][ Speed ],
g_szZombie[ i ][ Gravity ],
g_szZombie[ i ][ XP],
g_szZombie[ i ][ Access ]
)
}
}
public bb_zombie_class_set( id, iClass )
{
if( iClass == g_szZombie[ 3 ][ 0 ] ) /* 3 = Tanker Zm*/
{
give_item(id, "item_assaultsuit");
cs_set_user_armor(id, 200, CS_ARMOR_VESTHELM);
}
}
__________________
Last edited by Supremache; 09-14-2022 at 11:56.
|
|