Raised This Month: $ Target: $400
 0% 

Player is connecting


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DarkEnergy
SourceMod Donor
Join Date: Apr 2008
Location: Georgia Tech, MSECE
Old 09-16-2008 , 23:35   Player is connecting
Reply With Quote #1

in amxx there is the function is_user_connecting(id) [different from is_user_connected(id)], does sourcemod have such an equivalent function?

IsClientConnected(client) does not detect if a player is connecting
DarkEnergy is offline
FeuerSturm
AlliedModders Donor
Join Date: Apr 2004
Old 09-17-2008 , 00:52   Re: Player is connecting
Reply With Quote #2

Quote:
Originally Posted by DarkEnergy View Post
in amxx there is the function is_user_connecting(id) [different from is_user_connected(id)], does sourcemod have such an equivalent function?

IsClientConnected(client) does not detect if a player is connecting
I'd suggest to take a look at the forward "OnClientConnect" which
should be called when a client starts connection to your server,
as there's no native that let's you check if a client is currently
connecting (as far as i know ).
FeuerSturm is offline
Kigen
BANNED
Join Date: Feb 2008
Old 09-18-2008 , 00:11   Re: Player is connecting
Reply With Quote #3

Code:
if ( IsClientConnected(client) && !IsClientInGame(client) ) PrintToChatAll("Client %d is connecting", client);
or

Code:
IsClientConnecting(client)
{
     return ( IsClientConnected(client) && !IsClientInGame(client) );
}
Anymore questions?

Last edited by Kigen; 09-18-2008 at 14:11.
Kigen is offline
DarkEnergy
SourceMod Donor
Join Date: Apr 2008
Location: Georgia Tech, MSECE
Old 09-20-2008 , 19:03   Re: Player is connecting
Reply With Quote #4

will try thx
DarkEnergy is offline
HiJacker
Senior Member
Join Date: Jul 2008
Location: Slovakia
Old 10-01-2008 , 03:29   Re: Player is connecting
Reply With Quote #5

PHP Code:
public OnClientPostAdminCheckclient )
{
    if( 
IsFakeClientclient ) )
    return;

      
PrintToChatAll("\x04[SM] \x03Player connected.");

This is directly checking player on connect.
__________________
Before you talk to me, I should warn you : Im kind of strange.
HiJacker is offline
Send a message via ICQ to HiJacker
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 20:20.


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