Raised This Month: $51 Target: $400
 12% 

Multilines kick reason


Post New Thread Reply   
 
Thread Tools Display Modes
Owyn
Veteran Member
Join Date: Nov 2007
Old 11-01-2009 , 14:41   Re: Multilines kick reason
Reply With Quote #21

Quote:
Originally Posted by ConnorMcLeod View Post
I suppose is_valid_ent returns true even when players are not connected.
nope it doesn't, it also checks MF_IsPlayerIngame
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 11-01-2009 , 14:58   Re: Multilines kick reason
Reply With Quote #22

is_user_connecting ?
__________________
xPaw is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 11-01-2009 , 15:14   Re: Multilines kick reason
Reply With Quote #23

is_user_connecting - Returns 1 if a player has not yet connected, 0 otherwise. (c) func_wiki

PHP Code:
static cell AMX_NATIVE_CALL is_user_connecting(AMX *amxcell *params/* 1 param */
{
    
int index params[1];
    
    if (
index || index gpGlobals->maxClients)
        return 
0;

    
CPlayerpPlayer GET_PLAYER_POINTER_I(index);
    
    return (!
pPlayer->ingame && pPlayer->initialized && (GETPLAYERUSERID(pPlayer->pEdict) > 0)) ? 0;

conditions:
PutInServer not passed
client_connect passed
has userid

nothing more
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 11-01-2009 , 15:27   Re: Multilines kick reason
Reply With Quote #24

What are you trying todo..
__________________
xPaw is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-01-2009 , 17:09   Re: Multilines kick reason
Reply With Quote #25

if( is_user_connecting(id) && get_user_userid(id) != -1 )
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 11-02-2009 , 03:25   Re: Multilines kick reason
Reply With Quote #26

i was trying to say is_user_connecting doesn't do the thing,

+
ConnorMcLeod,
is_user_connecting() already checks if userid is bigger than zero
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-02-2009 , 05:32   Re: Multilines kick reason
Reply With Quote #27

So what is the problem with is_user_connecting ?
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 11-02-2009 , 09:06   Re: Multilines kick reason
Reply With Quote #28

look at previous pages
__________________
☜ Free Mozy ☂backup\҉sync user
Quote:
Американский форум - Задаёшь вопрос, потом тебе отвечают.
Израильский форум - Задаёшь вопрос, потом тебе задают вопрос.
Русский форум - Задаёшь вопрос, потом тебе долго рассказывают, какой ты мудак.
Owyn is offline
Send a message via ICQ to Owyn
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-02-2009 , 09:20   Re: Multilines kick reason
Reply With Quote #29

is_user_connecting is exactly what you want.

connect passed
putinserver not passed
userid exists
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 02-01-2014 , 11:12   Re: Multilines kick reason
Reply With Quote #30

Hi, sorry for bumb in this topic, but this will cause the server shutdown?
I tested and this is crashing the server:

PHP Code:
FATAL ERROR (shutting down): MSG_ONE or MSG_ONE_UNRELIABLE with no target entity 
PHP Code:
rcon status
NET Ports
:  server 27015client 27005
Server IP address 192.168.1.2
:27015
hostname
:  MaxiGames PUG #01 - MaxiGames
version :  48/1.1.2.7/Stdio 6132 insecure  (10)
tcp/ip  :  200.98.140.160:27041
map     
:  de_dust2 at0 x0 y0 z
players 
:  0 active (12 max)

#      name userid uniqueid frag time ping loss adr
0 users 
PHP Code:
rcon version
Protocol version 48
Exe version 1.1.2.7
/Stdio (cstrike)
Exe build10:03:21 Aug  8 2013 (6132
PHP Code:

rcon meta list
Currently loaded plugins:
      
description      stat pend  file              vers      src   load  unlod
 
1AMX Mod X        RUN   -    amxmodx_mm_i386.  v1.8.3-d  ini   Start ANY  
 
2FakeMeta         RUN   -    fakemeta_amxx_i3  v1.8.3-d  pl1   ANY   ANY  
 
3CStrike          RUN   -    cstrike_amxx_i38  v1.8.3-d  pl1   ANY   ANY  
 
4CSX              RUN   -    csx_amxx_i386.so  v1.8.3-d  pl1   ANY   ANY  
 
5Ham Sandwich     RUN   -    hamsandwich_amxx  v1.8.3-d  pl1   ANY   ANY  
 
6MySQL            RUN   -    mysql_amxx_i386.  v1.8.3-d  pl1   ANY   ANY  
 
7Orpheu           RUN   -    orpheu_amxx_i386  v2.5.1    pl1   ANY   ANY  
7 plugins
7 running 
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
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 13:54.


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