I have this:
Code:
public NewMenu( id )
{
new szMenuBody[256]
new keys
format( szMenuBody, 255, "Choose :^n1. Option 1^n2 Option 2^n3. Option 3^n^n0. Exit" )
keys = (1<<0|1<<1|1<<2|1<<9)
show_menu( id, keys, szMenuBody, -1 )
return PLUGIN_HANDLED
}
public MenuCommand( id , key )
{
switch( key )
{
case 0: {
client_print(id, print_chat,"Option 1")
}
case 1: {
client_print(id, print_chat, "Option2")
}
case 2: {
client_print(id, print_chat, "Option 3")
}
case 3: client_print( id, print_chat, "Closed the selection menu" )
}
return PLUGIN_HANDLED
}
I'd like that it shows current players in server, and gets their origin. Please don't change how menu is done, as this DOES NOT crashes server, I want only changes that this code above shows all players currently in server, and gets their origin so I can do set_user_origin on them.
But, I would be happy that it just shows all players in server. I'll do the rest.
__________________