Raised This Month: $12 Target: $400
 3% 

base builder 6.5 human classes menu!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
thebest24
Member
Join Date: Sep 2018
Location: Georgia
Old 07-10-2020 , 05:01   base builder 6.5 human classes menu!
Reply With Quote #1

i found human classes menu but i want change some parts and need help this menu is for vips and i want make it for players and i want put text: sorry, you don't have access to use this class if you dont have class access. here is sma text:
----------------------------------------------------------------------------------------------------------------

#include <amxmodx>
#include <amxmisc>
#include <cstrike>


#define PLUGIN "Admin Model Menu"
#define VERSION "1.0"
#define AUTHOR "Dimision"
#define ADMIN_LEVEL_Q

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /race", "admin")
}

public plugin_precache()
{
precache_model("models/player/sas/sas.mdl")
precache_model("models/player/vip/vip.mdl")
precache_model("models/player/sniper/sniper.mdl")
precache_model("models/player/ghost/ghost.mdl")
precache_model("models/player/tanker/tanker.mdl")
precache_model("models/player/hitman/hitman.mdl")
precache_model("models/player/deadshot/deadshot.mdl")
}

public admin(id)
{
if (get_user_flags(id) & ADMIN_LEVEL_H)
{
model_menu(id)
}
else
{
ChatColor(id, "!n [!g Base Builder !n] Sorry, you don't have access to use this menu")
}

}
public model_menu(id)
{
new menu = menu_create("\ySelect Your \r[Race]\w", "menu_wybierz")

menu_additem(menu, "\wClassic \r[Free]", "1", 0)
menu_additem(menu, "\wVIP \r[VIP]", "2", 0)
menu_additem(menu, "\wSniper \r[Helper]", "3", 0)
menu_additem(menu, "\wGhost \r[Admin]", "4", 0)
menu_additem(menu, "\wTanker \r[Full Admin]", "5", 0)
menu_additem(menu, "\wHitman \r[Head Admin]", "6", 0)
menu_additem(menu, "\wDeadshot \r[Zamenik/Owner]", "7", 0)

menu_setprop(menu, MPROP_EXIT, MEXIT_ALL)

menu_display(id, menu, 0)
}

public menu_wybierz(id, menu, item)
{
if (item == MENU_EXIT)
{
menu_destroy(menu)
return PLUGIN_HANDLED
}
new data[6], iName[64]
new acces, callback
menu_item_getinfo(menu, item, acces, data,5, iName, 63, callback)

new key = str_to_num(data)

switch(key)
{
case 1 : if(get_user_flags(id) & ADMIN_LEVEL_H)
cs_set_user_model(id, "sas")
case 2 : if(get_user_flags(id) & ADMIN_LEVEL_H)
cs_set_user_model(id, "vip")
case 3 : if(get_user_flags(id) & ADMIN_LEVEL_B)
cs_set_user_model(id, "sniper")
case 4 : if(get_user_flags(id) & ADMIN_LEVEL_C)
cs_set_user_model(id, "ghost")
case 5 : if(get_user_flags(id) & ADMIN_LEVEL_D)
cs_set_user_model(id, "tanker")
case 6 : if(get_user_flags(id) & ADMIN_LEVEL_E)
cs_set_user_model(id, "hitman")
case 7 : if(get_user_flags(id) & ADMIN_LEVEL_F)
cs_set_user_model(id, "deadshot")
}
menu_destroy(menu)
return PLUGIN_HANDLED
}
stock ChatColor(const id, const input[], any:...) {
new count = 1, players[32];
static msg[191];
vformat(msg, 190, input, 3);

replace_all(msg, 190, "!g", "^4"); // verde
replace_all(msg, 190, "!n", "^1"); // galben/alb/negru
replace_all(msg, 190, "!t", "^3"); // rosu/albastru/gri
replace_all(msg, 190, "!t2", "^0"); // rosu2/albastru2/gri2

if (id) players[0] = id; else get_players(players, count, "ch");
{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
}
}
thebest24 is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 07-10-2020 , 10:46   Re: base builder 6.5 human classes menu!
Reply With Quote #2

PHP Code
Supremache is offline
DON KHAN 1
Senior Member
Join Date: Mar 2019
Location: Pakistan
Old 07-11-2020 , 04:29   Re: base builder 6.5 human classes menu!
Reply With Quote #3

I have a Human Classes Menu which i edited for my BaseBuilder server.
You can edit it easily too.

Everything u want is added in that plugin.
Attached Files
File Type: sma Get Plugin or Get Source (Human_Classes.sma - 108 views - 5.8 KB)
__________________
Facebook
My YouTube
Ro{Y}aL WarLanD CommuniTy
Selling Zombie CSO 4.3 Money System Mod
DON KHAN 1 is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 07-11-2020 , 09:22   Re: base builder 6.5 human classes menu!
Reply With Quote #4

@ DON KHAN - Your plugin have somebugs and i have fixed them + added new features'

@ thebest24 - If i have free time i will make a new features for this plugin like, I will make special things for every class like [Time Money Bonus, gravity, bunnyhop, milti jump, speed.........]
Attached Files
File Type: sma Get Plugin or Get Source (HumanClassNew.sma - 100 views - 6.5 KB)

Last edited by Supremache; 07-11-2020 at 09:23.
Supremache is offline
DON KHAN 1
Senior Member
Join Date: Mar 2019
Location: Pakistan
Old 07-11-2020 , 11:38   Re: base builder 6.5 human classes menu!
Reply With Quote #5

Quote:
Originally Posted by Supremache View Post
@ DON KHAN - Your plugin have somebugs and i have fixed them + added new features'
Thank You for fixing
__________________
Facebook
My YouTube
Ro{Y}aL WarLanD CommuniTy
Selling Zombie CSO 4.3 Money System Mod
DON KHAN 1 is offline
thebest24
Member
Join Date: Sep 2018
Location: Georgia
Old 07-14-2020 , 13:18   Re: base builder 6.5 human classes menu!
Reply With Quote #6

this classes menu is good but i need with special things health speed gravity invisibility and x2 damage
thebest24 is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 07-14-2020 , 19:14   Re: base builder 6.5 human classes menu!
Reply With Quote #7

Quote:
Originally Posted by thebest24 View Post
this classes menu is good but i need with special things health speed gravity invisibility and x2 damage
I Added some features like [ HP, speed, gravity, glow, bhop, maltijump , x2 Demage]
Ps: I didn't tested it
Attached Files
File Type: sma Get Plugin or Get Source (HumanClassNew.sma - 92 views - 10.8 KB)
Supremache is offline
thebest24
Member
Join Date: Sep 2018
Location: Georgia
Old 07-15-2020 , 03:32   Re: base builder 6.5 human classes menu!
Reply With Quote #8

Quote:
Originally Posted by Supremache View Post
I Added some features like [ HP, speed, gravity, glow, bhop, maltijump , x2 Demage]
Ps: I didn't tested it
i tested not working powers just working glow on death but after when u choose other class they also have glow
thebest24 is offline
thebest24
Member
Join Date: Sep 2018
Location: Georgia
Old 07-15-2020 , 05:46   Re: base builder 6.5 human classes menu!
Reply With Quote #9

instead of glow invisibility will be better i think
thebest24 is offline
thebest24
Member
Join Date: Sep 2018
Location: Georgia
Old 07-16-2020 , 04:17   Re: base builder 6.5 human classes menu!
Reply With Quote #10

i fixed my plugin thx now i need new HUD for basebuilder (preptime,buildtime , builder/zombie class , health HUD ).
thebest24 is offline
Reply


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 06:35.


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