Raised This Month: $ Target: $400
 0% 

Exit button


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Ykaru
Member
Join Date: Aug 2019
Old 08-15-2019 , 10:26   Exit button
Reply With Quote #1

Hi, i have this classes plugin.
He has 2 classes, one for players and one for admins.
And i need an Exit button from menu because if you are a player you cant choose another class and you cant close the menu.

Quote:
/*============================================ ====================================

-----------------------------------
-*- [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[] = { "Alien" }
new const zclass1_info[] = { "=Balanced=" }
new const zclass1_model[] = { "bb_playerTs" }
new const zclass1_clawmodel[] = { "v_mainiT" }
const zclass1_health = 3500
const zclass1_speed = 260
const Float:zclass1_gravity = 1.0
const zclass1_adminflags = ADMIN_ALL

// Tanker Zombie Attributes
new const zclass2_name[] = { "Nemesis" }
new const zclass2_info[] = { "HP+ AP+" }
new const zclass2_model[] = { "bb_adminT" }
new const zclass2_clawmodel[] = { "v_mainiT" }
const zclass2_health = 4000
const zclass2_speed = 260
const Float:zclass2_gravity = 1.0
const zclass2_adminflags = ADMIN_RESERVATION
#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_name, zclass1_info, zclass1_model, zclass1_clawmodel, zclass1_health, zclass1_speed, zclass1_gravity, 0.0, zclass1_adminflags)
g_zclass_tanker = bb_register_zombie_class(zclass2_name, zclass2_info, zclass2_model, zclass2_clawmodel, zclass2_health, zclass2_speed, zclass2_gravity, 0.0, zclass2_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
Ykaru is offline
 


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 17:17.


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