Raised This Month: $ Target: $400
 0% 

Check if user connected


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 08-18-2010 , 13:37   Check if user connected
Reply With Quote #1

Alright, when a client starts connecting, the function is:
public client_connect(id)

But at that point, I'm guessing they aren't truly connected, because I get errors when trying that. I was thinking of setting a task, and then loading the nVault when the task is up, but thats a waste of time.

What is client_putinserver(id)?
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
t3hNox
Senior Member
Join Date: Oct 2009
Old 08-18-2010 , 13:47   Re: Check if user connected
Reply With Quote #2

client_connect includes the loading time, client_putinserver is called when a client "reaches" MOTD window.
t3hNox is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-18-2010 , 13:48   Re: Check if user connected
Reply With Quote #3

For nvault you can use forward client_authorized that is sent when player steamid is known.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 08-18-2010 , 14:10   Re: Check if user connected
Reply With Quote #4

Quote:
Originally Posted by ConnorMcLeod View Post
For nvault you can use forward client_authorized that is sent when player steamid is known.
Thanks to the both of you.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
Jelle
[b]MOAR CANDY[/b]
Join Date: Aug 2009
Location: Denmark
Old 08-18-2010 , 23:40   Re: Check if user connected
Reply With Quote #5

Quote:
Originally Posted by t3hNox View Post
client_connect includes the loading time, client_putinserver is called when a client "reaches" MOTD window.
I have always thought that putinserver was the first forward ever called, and connect was when they had loaded. Can anyone clarify this for me?
__________________
No idea what to write here...
Jelle is offline
Send a message via MSN to Jelle
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-18-2010 , 23:54   Re: Check if user connected
Reply With Quote #6

Quote:
Originally Posted by Jelle View Post
I have always thought that putinserver was the first forward ever called, and connect was when they had loaded. Can anyone clarify this for me?
client_putinserver() is called when the client is put in the server.
client_connect() is when you connect to the server (you haven't loaded anything yet).

OR better yet you can try it out for yourself. Just write a plugin with all the forwards and print stuff to the server console.
__________________
fysiks is offline
Kreation
Veteran Member
Join Date: Jan 2010
Location: Illinois
Old 08-19-2010 , 00:32   Re: Check if user connected
Reply With Quote #7

Quote:
Originally Posted by fysiks View Post
try it out for yourself.
That sir, is a mighty task that only few have ever accomplished. I do not think he is up for it.
__________________
Hi.
Kreation is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 08-19-2010 , 10:57   Re: Check if user connected
Reply With Quote #8

Quote:
Originally Posted by Kreation View Post
That sir, is a mighty task that only few have ever accomplished. I do not think he is up for it.
Do you seriously live off of trolling my threads?
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-19-2010 , 12:22   Re: Check if user connected
Reply With Quote #9

To clarify, client_putinserver is actually called near the end of the loading screen, not when the MOTD appears.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 08-19-2010 , 12:27   Re: Check if user connected
Reply With Quote #10

Quote:
Originally Posted by YamiKaitou View Post
To clarify, client_putinserver is actually called near the end of the loading screen, not when the MOTD appears.
Mhm, which is why if you are going to do something to someone after they are in the server, you should set a task from client_putinserver().
RedRobster 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 21:53.


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