AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   base builder 6.5 human classes menu! (https://forums.alliedmods.net/showthread.php?t=325887)

thebest24 07-10-2020 05:01

base builder 6.5 human classes menu!
 
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();
}
}
}
}

Supremache 07-10-2020 10:46

Re: base builder 6.5 human classes menu!
 
PHP Code

DON KHAN 1 07-11-2020 04:29

Re: base builder 6.5 human classes menu!
 
1 Attachment(s)
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.

Supremache 07-11-2020 09:22

Re: base builder 6.5 human classes menu!
 
1 Attachment(s)
@ 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.........]

DON KHAN 1 07-11-2020 11:38

Re: base builder 6.5 human classes menu!
 
Quote:

Originally Posted by Supremache (Post 2709662)
@ DON KHAN - Your plugin have somebugs and i have fixed them + added new features'

Thank You for fixing :)

thebest24 07-14-2020 13:18

Re: base builder 6.5 human classes menu!
 
this classes menu is good but i need with special things health speed gravity invisibility and x2 damage

Supremache 07-14-2020 19:14

Re: base builder 6.5 human classes menu!
 
1 Attachment(s)
Quote:

Originally Posted by thebest24 (Post 2710091)
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

thebest24 07-15-2020 03:32

Re: base builder 6.5 human classes menu!
 
Quote:

Originally Posted by Supremache (Post 2710122)
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 07-15-2020 05:46

Re: base builder 6.5 human classes menu!
 
instead of glow invisibility will be better i think

thebest24 07-16-2020 04:17

Re: base builder 6.5 human classes menu!
 
i fixed my plugin thx :) now i need new HUD for basebuilder (preptime,buildtime , builder/zombie class , health HUD ).


All times are GMT -4. The time now is 02:42.

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