Actually you should use client_putinserver, not client_connect. client_connect is called when a player starts connecting to the server. client_putinserver is called when the user is actually in the game, meaning the user has fully connected, and not still connecting.
My point is use client_putinserver to make the menu pop-up when the player first joins in the game. That way you can also avoid setting a task as well.
So your modified code would look like this:
Code:
public client_putinserver(id)
{
//call the menu function to show the menu and do stuff.
}
Makes life easier doesn't it?
__________________
GRR If only the amxmod programming were in Java.....
Java and C used to be two different languages, now Java is turning into another C. My
logevent plugin