Raised This Month: $ Target: $400
 0% 

save a id when client connect


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-05-2010 , 22:59   Re: save a id when client connect
Reply With Quote #4

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!" ) }
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT

Last edited by wrecked_; 03-05-2010 at 23:03.
wrecked_ is offline
 



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 08:38.


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