Raised This Month: $ Target: $400
 0% 

Menu Issues


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Batman/Gorlag
Senior Member
Join Date: Aug 2005
Old 10-30-2005 , 01:39  
Reply With Quote #1

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
Batman/Gorlag is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode