Open menu after connect
PHP Code:
|
Re: Open menu after connect
It would be best to show the menu after they join a team. client_connect is called when they connect, they aren't fully in the server yet.
|
Re: Open menu after connect
You can use client_putinserver()
|
Re: Open menu after connect
Sorry for a bit of lithuanian, just want to welcome this guy, becouse hes from my country.
[IGNORE THIS IF YOUR NOT LTU] Sveikas, paprasciausiai naudok: public client_putinserver(), atsidaryk { } ir viduje irasyk kad atidarytu meniu. Skype motd_lt daugiau info ;] [/IGNORE THIS IF YOUR NOT LTU] Here's code for it to open menu when player is connected. PHP Code:
player joins, and usually takes ~1,2 secs, to choose team so he could clearly see the menu. (becouse the chooseteam menu is on top of your menu. So you press to team 1, it chooses 1 option of ur menu. Ok so we add 5 seconds delay: (and another block of code :P) PHP Code:
you can just type in show_menu(id) , but it might give an error, in mine case works fine :P |
Re: Open menu after connect
yeah Lure.d but the best way is to use the team_join event
after the team is choosen he gets the menu :wink: |
Re: Open menu after connect
Quote:
BEST way would be to create a 2-5 second task on team_join/class_select and show the menu. This way you can make sure that they are ready. |
Re: Open menu after connect
how to detect team_join/class_select?
|
Re: Open menu after connect
Quote:
PHP Code:
|
| All times are GMT -4. The time now is 04:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.