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

base builder 6.5 human classes menu!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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


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