Raised This Month: $ Target: $400
 0% 

purpose of ackSignal() in adminslots


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Owyn
Veteran Member
Join Date: Nov 2007
Old 10-31-2009 , 17:07   Re: purpose of ackSignal() in adminslots
Reply With Quote #1

oh, SVC_DISCONNECT is a nice idea

will it work right after client_connect ?
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 10-31-2009 , 17:14   Re: purpose of ackSignal() in adminslots
Reply With Quote #2

You are sending a message to an entity, therefore, the player must be connected.
client_connect( ) is only the first point of connection.
client_putinserver( ) is when player is done connecting.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 10-31-2009 , 17:20   Re: purpose of ackSignal() in adminslots
Reply With Quote #3

i see, but what if not? you can't kick him(right now)? you have to wait some time and try again?

would this check be right to make sure you can kick a player?
PHP Code:
if(is_user_entity(id)) 
PHP Code:
static cell AMX_NATIVE_CALL is_user_entity(AMX *amxcell *params/* 1 param */
{
    
int index params[1];
    
    if (
index || index gpGlobals->maxClients)
    {
        return 
0;
    }
    
    if (
FNullEnt(INDEXENT(index)))
    {
        return 
0;
    }
    
    return 
1;

__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.

Last edited by Owyn; 11-01-2009 at 14:40.
Owyn is offline
Send a message via ICQ to Owyn
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 17:34.


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