Team Menu
Hi everyone i have a question , i have tried to hook chooseteam command and replace it with my own custom menu , and now i wanted to add for case 0 this team menu which appears just after you connect to the server
Spoiler
when i use client_cmd(id, "jointeam") i don't have spectator option so i wanted to know if it's possible to show to the client the menu on the picture and how to do that |
Re: Team Menu
check if players' team is CT/T, if not then don't block that menu;
|
Re: Team Menu
I use auto team join for that but i wanted to know if it's possible to open the menu on the pic in order to change your team or go to spec while you are already in T or CT
|
Re: Team Menu
Quote:
|
Re: Team Menu
search for it, already been made
|
Re: Team Menu
Quote:
Edit: smiley i was searching bro but i can’t find the code which will show the menu that i need... i have found this Code:
register_message(get_user_msgid("ShowMenu"), "message_ShowMenu"); |
Re: Team Menu
I have looked up in ReGameDLL project & if player has flag DEAD_NO then Spectator can not be selected from teams menu.
|
Re: Team Menu
I have almost found the solution but i have one issue and i don't know how to fix it , if the player is in ct or t and if he is DEAD and i try to this cs_set_user_team(id, CS_TEAM_SPECTATOR) , the player goes to spec and nextround he goes back to the team where he was before going to spec any idea why is this happening thanks in advance
|
| All times are GMT -4. The time now is 12:50. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.