View Single Post
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 03-12-2020 , 08:29   Re: [L4D] Map changer with rating system
Reply With Quote #17

This is the first time when I'm trying to see the difference in listen server in practice (just for interest).

Quote:
Originally Posted by Marttt View Post
for (int i = IsDedicatedServer() ? 1 : 0
I saw this sample lot of times.
How are you guys receiving "0" index of client? This is what I have when I join the L4D1 game:

Quote:
hostname: ☣ Drakoshka ☣
version : 1.0.3.8 6830 insecure
map : l4d_hospital01_apartment at ( 2004, 904, 494 )
udp/ip : 192.168.x.x:27015 [ public n/a ]
players : 1 humans, 0 bots (4 max) (not hibernating) (unreserved)

os : Windows Listen
# userid name uniqueid connected ping loss state rate adr
# 6 1 "☣ Drakoshka ☣" STEAM_1:1xx 00:51 33 0 active 30000 loopback
# 7 "Zoey" BOT active
# 8 "Francis" BOT active
# 9 "Bill" BOT active
#end
My index is 1 (UserId 6). I can't reproduce 0.
The only way I succeed to get 0 was entering command via console, so client == 0 and %N == Console.
Also, checking for IsClientInGame(0) raise an exception.

BTW, v.1.15 is correctly work for me on my listen server L4D1 (both, default and custom maps).
Though, command bind doesn't call menu, only chat command for obvious reason: command handler receive 0, but 0 is Console, not client.

Plugin is updated to v.1.16
Quote:
v.1.16 (12-Mar-2020)
- Fixed L4D1 Windows support.
- Attempt to add 'listen servers' support.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline