Optimize ChooseTeam Menu?
ive made this choose team menu for when someone presses ( M ).
just wondering if it can be optimized smaller? Code:
EDIT: added Callback its a lil better.... but still need to know if i can do this whole plugin better? |
Re: Optimize ChooseTeam Menu?
You can't set teams properly like this.
Better to just edit the menu text that the game send to player, and to remove some keys from it if you need, then when player chooses the key, game gonna handle it and properly set teams. |
Re: Optimize ChooseTeam Menu?
thanks. could you give small example on how to correctly. or a link for me to read up on it?
|
Re: Optimize ChooseTeam Menu?
Example is on the forum, let's search for it.
|
Re: Optimize ChooseTeam Menu?
ive now changed it with usage of
Code:
is this a more efficient way of changing teams? |
Re: Optimize ChooseTeam Menu?
|
Re: Optimize ChooseTeam Menu?
Quote:
the one i made is a custom one that replaces the original one instead of using the default ones (menu / gui ) |
Re: Optimize ChooseTeam Menu?
And you can't do that, has already been tested in the past and doesn't work at all.
|
Re: Optimize ChooseTeam Menu?
Quote:
|
| All times are GMT -4. The time now is 10:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.