Picking a choice for a player in menu's
Is there any way I can pick a choice for a player through a plugin? Like, if I detect that he has reached the menu ID of 'chooseteam' I'll pick 1 FOR him, without him even needing to press it.
|
Re: Picking a choice for a player in menu's
Check team join management by Exolent[jNr] and see how he does it.
|
Re: Picking a choice for a player in menu's
I looked at it, and I don't understand alot of things since I don't know these functions, could you please help me and please post the part of code where he forces them to pick 1 then?
I believe that's it: PHP Code:
|
Re: Picking a choice for a player in menu's
I tried using this: set_cvar_string("humans_join_team", "ct")
will it work? |
Re: Picking a choice for a player in menu's
set_cvar_string("humans_join_team","ct") >> set_cvar_string("humans_join_team","CT")
|
Re: Picking a choice for a player in menu's
Yes it works.
|
Re: Picking a choice for a player in menu's
Explanation of Exolent's code:
PHP Code:
|
| All times are GMT -4. The time now is 00:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.