So you're trying to just get the first person that joins the server and display a menu to them?
EDIT: Here's my interpretation of what you're doing. new players
Code:
new tempid
public plugin_init()
{
register_plugin( "Firsy Player Menu", VERSION, "Wrecked" ) // :avast:
register_clcmd( "say /menudisp", "CMD_DispMenu" )
}
public client_connect( id )
{
players++
if( players == 1 )
tempid = id
}
public client_disconnect( id )
{
players--
}
public CMD_DispMenu( id )
{
if( id == tempid )
menu_display( id, yourmenu, 0 )
else
print_chat( id, print_chat, "You're not the first player!" )
}
__________________