It should print the name of the player you chose..
To make it change a players team, you would edit this function:
Code:
public MenuCommand( id, key )
{
switch( key )
{
case 8: PlayerMenu( id, ++g_nMenuPosition[id] )
case 9: PlayerMenu( id, --g_nMenuPosition[id] )
default:
{
// This is the Chosen Player Index
new iIndex = g_nMenuPosition[id] * MAX_DISPLAY + key
// Get the Chosen Players Name
new szUsername[32]
get_user_name( iIndex, szUsername, 31 )
// Print Username to Admin who called Menu
client_print( id, print_chat, "You Selected: %s", szUsername )
}
}
return PLUGIN_HANDLED
}
Where iIndex is the ID of the chosen player...
Now, you want the player to be changed to a different team?? Which team?? Are you gonna pick the team for them, or just put them on opposite team?