Menu shows server players?!?!
I have this:
Code:
But, I would be happy that it just shows all players in server. I'll do the rest. |
:rtfm: :P
Seriously, the manual is your friend. I come from a land of AMX scripting, where documentation is unheard of, and constant lookup of functions was done inside the include files. You come from a rich and fertile land, where your many forefathers have fought the evcilness of ignorance with all their might. ANYWAYS! :oops: find_player is your friend. You'll be wanting to use the "f" flag, as setting the origin of a dead person may not end well :shock: Once you got their id, it's a simple matter of "set_user_origin" (from the land of the Fun Module). If you're trying to set their origin to something relative of their old position (like dropping them from a height for example :twisted: ), then you might want to use get_user_origin, and manipulate their origin from there, then use set_user_origin. |
You misunderstood his WHOLE problem..
|
Quote:
Well I kinda answered his question! :D. He'll need to use find_players to get all the alive players. |
Here is a very basic version of a player menu, completely ready to go, just add your commands to it, to do what you want when you select a player..
Study the code so you understand it, and then you can manipulate it, and notice that the menu displays dead players too (but grey) and you cannot select them from the menu.. that is optional, but I left the code there so you can see how that works.. it is easy to remove though.. Code:
I hope that helps.. |
| All times are GMT -4. The time now is 16:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.