Help for CT or T Custom Menu
Hello guys! Hope you are coping during these times.
Kindly help me on this script (.sma): ***THE IDEA*** - When Counter Terrorist type /skin, a menu pops up with certain options, on the other hand, when Terrorist Team types /skin on say, a menu pops up as well with certain options. I have the .sma already, problem is, I can't find a way to define the certain options of the menu pop-up when typing on say: /skin for CT OR T teams. Here are the codes as reference: Code:
#include <amxmodx> Code:
menu_additem(menu, "\wAsasin", "1", 0) Code:
//menu_additem(menu, "\wAsasin", "1", 0) LOOKING FORWARD! Thank you! :) |
Re: Help for CT or T Custom Menu
You can check which team the player is using cs_get_user_team native.
Code:
if (cs_get_user_team(id) == CS_TEAM_T) |
Re: Help for CT or T Custom Menu
1 Attachment(s)
Quote:
|
Re: Help for CT or T Custom Menu
Quote:
Thanks in advance! |
Re: Help for CT or T Custom Menu
Quote:
|
Re: Help for CT or T Custom Menu
Quote:
Edit: I have tested it and there's no problem, it's working perfectly cmd "say /skin" https://i.ibb.co/vxbS1mH/2s.png https://i.ibb.co/ZKHJ9F5/1s.png |
Re: Help for CT or T Custom Menu
You can do something like this:
Code:
#include <amxmodx> If the menu is going to have more than 1 page, you should do this instead: Code:
#include <amxmodx> https://forums.alliedmods.net/showpo...40&postcount=1 Hope I've helped, happy coding! |
Re: Help for CT or T Custom Menu
Quote:
P.S @feren02: I did one wrong on my plugin Replace from: PHP Code:
PHP Code:
|
Re: Help for CT or T Custom Menu
3 Attachment(s)
Try this custom team menu model plugin
|
Re: Help for CT or T Custom Menu
Hello everyone thanks for all the inputs. It really helped me figure out how to do it and make it work on server side! KUDOS for my learnings via your expertise.
ONE LAST request if granted: When a player for example is in CT, and selected a skin for CT, the moment the player switches to Terrorist Team, the model still appears as is. This goes likewise when a player is on Terrorist Team selecting skin or model then switches to CT Team. How can I make the skin go off or default when switching teams so they cannot look and appear like the model or skin available from the other teams? ***THE PROBLEM***: For example for CT Team there are three options only to switch models: 1. Assassin 2. Sonic 3. Iron Man -- A player selects Sonic, when a player switches to Terrorist Team, Sonic still appears, creating confusion to all players because they know Sonic model is only for CT. Looking forward for all your thoughts. Regards, keep safe and healthy! |
All times are GMT -4. The time now is 21:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.