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

[L4D2] Player Unstick


Post New Thread Reply   
 
Thread Tools Display Modes
chatyak
Senior Member
Join Date: Aug 2011
Old 10-15-2012 , 19:07   Re: [L4D2] Player Unstick
Reply With Quote #81

Quote:
Originally Posted by GsiX View Post
i use this plugin now but i still didnt encounter that error but maybe this will fix your problem..

PHP Code:
public OnClientPutInServer(client)
{
    if(
client && client MaxClients)
    {
        
// Initalize location and teleport amount values for client
        
g_Location[client][0] = 0.0// X
        
g_Location[client][1] = 0.0// Y
        
g_Location[client][2] = 0.0// Z
        
g_teleportsLeft[client] = GetConVarInt(g_hNumOfTeleports); // Number of teleports for client
        // Lets check if we're allowing annoucements
        
if(GetConVarInt(g_hPluginAnnounce) == 1)
        {
            
ClientDelayTimers[client][1] = CreateTimer(50.0StuckPluginAnnounceclient);
        }
    }  
}

public 
OnClientDisconnect(client)
{
    if(
client && client MaxClients)
    {
        if (
ClientDelayTimers[client][0] != INVALID_HANDLE)
        {
            
KillTimer(ClientDelayTimers[client][0]);
            
ClientDelayTimers[client][0] = INVALID_HANDLE;
        }
        if (
ClientDelayTimers[client][1] != INVALID_HANDLE)
        {
        
KillTimer(ClientDelayTimers[client][1]);
        
ClientDelayTimers[client][1] = INVALID_HANDLE;
        }
    }

I dont know which plugins u use so i m guessing... i m lazy download all those new attachment..
I don't know what to do with this GSIX. Thank you for the help though - where do I put this?
chatyak is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 10-16-2012 , 06:46   Re: [L4D2] Player Unstick
Reply With Quote #82

solution 1:
You try go to line number 4 and you found this:
PHP Code:
#define MAX_PLAYERS 19 
change it to:
PHP Code:
#define MAX_PLAYERS 65 
Solution 2:
step 1 - go to line no. 4 and you found this, delet it:
PHP Code:
#define MAX_PLAYERS 19 
step 2 - Replace any keywords "MAX_PLAYERS" to "MAXPLAYERS+1". Should be look like this:
PHP Code:
new Float:g_Location[MAXPLAYERS+1][3]; // Client location array
new g_teleportsLeft[MAXPLAYERS+1]; // Client teleports left array
new Handle:g_hNumOfTeleports// Handle for number of allowed teleports
new Handle:g_hPluginAnnounce// Handle for plugin announcement
new Handle:ClientDelayTimers[MAXPLAYERS+1][2]; // Timers for teleport delays on clients 
I have no idea why this plugin still in the approved section.
Anyway try this.
Attached Files
File Type: sp Get Plugin or Get Source (l4d2unstick.sp - 824 views - 6.5 KB)

Last edited by GsiX; 10-16-2012 at 07:11.
GsiX is offline
chatyak
Senior Member
Join Date: Aug 2011
Old 10-17-2012 , 03:00   Re: [L4D2] Player Unstick
Reply With Quote #83

I'm getting this:

L 10/17/2012 - 018:57: SourceMod error session started
L 10/17/2012 - 018:57: Info (map "l4d2_helms_deep_serious_v16") (file "errors_20121017.log")
L 10/17/2012 - 018:57: [SM] Native "KillTimer" reported: Invalid timer handle f080242 (error 3)
L 10/17/2012 - 018:57: [SM] Displaying call stack trace for plugin "l4d2unstick.smx":
L 10/17/2012 - 018:57: [SM] [0] Line 68, /home/groups/alliedmodders/forums/files/1/9/0/4/7/8/110969.attach::OnClientDisconnect()
L 10/17/2012 - 01:40:26: [SM] Native "KillTimer" reported: Invalid timer handle 15e902e1 (error 3)
L 10/17/2012 - 01:40:26: [SM] Displaying call stack trace for plugin "l4d2unstick.smx":
L 10/17/2012 - 01:40:26: [SM] [0] Line 68, /home/groups/alliedmodders/forums/files/1/9/0/4/7/8/110969.attach::OnClientDisconnect()
L 10/17/2012 - 01:41:15: [SM] Native "KillTimer" reported: Invalid timer handle 18ee02da (error 3)
L 10/17/2012 - 01:41:15: [SM] Displaying call stack trace for plugin "l4d2unstick.smx":
L 10/17/2012 - 01:41:15: [SM] [0] Line 68, /home/groups/alliedmodders/forums/files/1/9/0/4/7/8/110969.attach::OnClientDisconnect()
L 10/17/2012 - 01:41:16: [SM] Native "KillTimer" reported: Invalid timer handle 192002af (error 1)
L 10/17/2012 - 01:41:16: [SM] Displaying call stack trace for plugin "l4d2unstick.smx":
L 10/17/2012 - 01:41:16: [SM] [0] Line 68, /home/groups/alliedmodders/forums/files/1/9/0/4/7/8/110969.attach::OnClientDisconnect()



and it is crashing on Helms Deep survival. Not sure if its related..
chatyak is offline
chatyak
Senior Member
Join Date: Aug 2011
Old 10-17-2012 , 03:04   Re: [L4D2] Player Unstick
Reply With Quote #84

Quote:
L 10/16/2012 - 15:22:18: SourceMod error session started
L 10/16/2012 - 15:22:18: Info (map "Hideout03") (file "errors_20121016.log")
L 10/16/2012 - 15:22:18: [SM] Native "KillTimer" reported: Invalid timer handle 266b02d0 (error 3)
L 10/16/2012 - 15:22:18: [SM] Displaying call stack trace for plugin "l4d2unstick.smx":
L 10/16/2012 - 15:22:18: [SM] [0] Line 68, /home/groups/alliedmodders/forums/files/1/9/0/4/7/8/110969.attach::OnClientDisconnect()
L 10/16/2012 - 15:24:42: [SM] Native "KillTimer" reported: Invalid timer handle 27ec0236 (error 3)
L 10/16/2012 - 15:24:42: [SM] Displaying call stack trace for plugin "l4d2unstick.smx":
L 10/16/2012 - 15:24:42: [SM] [0] Line 68, /home/groups/alliedmodders/forums/files/1/9/0/4/7/8/110969.attach::OnClientDisconnect()
L 10/16/2012 - 159:56: Error log file session closed.
L 10/16/2012 - 15:42:16: SourceMod error session started
L 10/16/2012 - 15:42:16: Info (map "Hideout04_v2") (file "errors_20121016.log")
L 10/16/2012 - 15:42:16: [SM] Native "KillTimer" reported: Invalid timer handle 3a0d02d0 (error 3)
L 10/16/2012 - 15:42:16: [SM] Displaying call stack trace for plugin "l4d2unstick.smx":
L 10/16/2012 - 15:42:16: [SM] [0] Line 68, /home/groups/alliedmodders/forums/files/1/9/0/4/7/8/110969.attach::OnClientDisconnect()
L 10/16/2012 - 16:22:25: SourceMod error session started
L 10/16/2012 - 16:22:25: Info (map "l4d2_roadtonowhere_route02") (file "errors_20121016.log")
L 10/16/2012 - 16:22:25: [SM] Native "KillTimer" reported: Invalid timer handle 200f02da (error 1)
L 10/16/2012 - 16:22:25: [SM] Displaying call stack trace for plugin "l4d2unstick.smx":
L 10/16/2012 - 16:22:25: [SM] [0] Line 68, /home/groups/alliedmodders/forums/files/1/9/0/4/7/8/110969.attach::OnClientDisconnect()
L 10/16/2012 - 161:50: [SM] Native "KillTimer" reported: Invalid timer handle 2eaa02df (error 3)
L 10/16/2012 - 161:50: [SM] Displaying call stack trace for plugin "l4d2unstick.smx":
L 10/16/2012 - 161:50: [SM] [0] Line 68, /home/groups/alliedmodders/forums/files/1/9/0/4/7/8/110969.attach::OnClientDisconnect()
L 10/16/2012 - 162:05: [SM] Native "KillTimer" reported: Invalid timer handle 2f0302bf (error 3)
L 10/16/2012 - 162:05: [SM] Displaying call stack trace for plugin "l4d2unstick.smx":
L 10/16/2012 - 162:05: [SM] [0] Line 68, /home/groups/alliedmodders/forums/files/1/9/0/4/7/8/110969.attach::OnClientDisconnect()
L 10/16/2012 - 162:21: Error log file session closed.
L 10/16/2012 - 17:00:13: SourceMod error session started
L 10/16/2012 - 17:00:13: Info (map "l4d2_roadtonowhere_route05") (file "errors_20121016.log")
L 10/16/2012 - 17:00:13: [SM] Native "KillTimer" reported: Invalid timer handle 531002d9 (error 3)
L 10/16/2012 - 17:00:13: [SM] Displaying call stack trace for plugin "l4d2unstick.smx":
L 10/16/2012 - 17:00:13: [SM] [0] Line 68, /home/groups/alliedmodders/forums/files/1/9/0/4/7/8/110969.attach::OnClientDisconnect()
L 10/16/2012 - 17:00:18: [SM] Native "KillTimer" reported: Invalid timer handle 53290324 (error 3)
L 10/16/2012 - 17:00:18: [SM] Displaying call stack trace for plugin "l4d2unstick.smx":
L 10/16/2012 - 17:00:18: [SM] [0] Line 68, /home/groups/alliedmodders/forums/files/1/9/0/4/7/8/110969.attach::OnClientDisconnect()
L 10/16/2012 - 17:05:54: Error log file session closed.
L 10/16/2012 - 17:410: SourceMod error session started
L 10/16/2012 - 17:410: Info (map "l4d2_roadtonowhere_route02") (file "errors_20121016.log")
L 10/16/2012 - 17:410: [SM] Native "KillTimer" reported: Invalid timer handle 8df902df (error 3)
L 10/16/2012 - 17:410: [SM] Displaying call stack trace for plugin "l4d2unstick.smx":
L 10/16/2012 - 17:410: [SM] [0] Line 68, /home/groups/alliedmodders/forums/files/1/9/0/4/7/8/110969.attach::OnClientDisconnect

etccc
Also that is a log created too.
chatyak is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 09-07-2013 , 12:19   Re: [L4D2] Player Unstick
Reply With Quote #85

hello,

i have a error :
Quote:
L 09/06/2013 - 03:47:52: SourceMod error session started
L 09/06/2013 - 03:47:52: Info (map "c8m2_subway") (file "errors_20130906.log")
L 09/06/2013 - 03:47:52: [SM] Plugin encountered error 15: Array index is out of bounds
L 09/06/2013 - 03:47:52: [SM] Displaying call stack trace for plugin "l4d2unstick.smx":
L 09/06/2013 - 03:47:52: [SM] [0] Line 76, G:\L4D2\Backup_Myriapulse\Server\addons\sourc emod\scripting\l4d2_unstick.sp::Command_Say()
L 09/06/2013 - 03:53:26: Error log file session closed.
how to fix please ?

Sincerely,

Last edited by eric0279; 09-07-2013 at 21:32.
eric0279 is offline
probably2000
Junior Member
Join Date: Sep 2013
Old 09-24-2013 , 00:42   Re: [L4D2] Player Unstick
Reply With Quote #86

Hi,sir,I am using this plugin and its very helpful,thank u very much.but here is another problem hope u can see it.when i play a 8 players coop game ,i always find we were born not in the safe room but somewhere weird in the map . I mean we should stay in saferoom before the game start ,but we always in other place in the map sometimes in bug.So could i ask u to see this problem and help make a plugin that makes sure all players born in saferooom before game start.could u ?thank u anyway.
probably2000 is offline
likethematrix
Junior Member
Join Date: Dec 2010
Old 10-05-2016 , 20:20   Re: [L4D2] Player Unstick v1.1.3
Reply With Quote #87

The plugin now auto generates a .cfg file on server start. Revised from Derka's 1.1.2 version
Attached Files
File Type: smx l4d2unstick.smx (7.6 KB, 290 views)
File Type: sp Get Plugin or Get Source (l4d2unstick.sp - 878 views - 7.0 KB)
likethematrix is offline
chungocanh12
Member
Join Date: Apr 2023
Location: Việt Nam
Old 05-19-2023 , 22:20   Re: [L4D2] Player Unstick v1.1.3
Reply With Quote #88

Quote:
Originally Posted by likethematrix View Post
The plugin now auto generates a .cfg file on server start. Revised from Derka's 1.1.2 version
Hi mate, i'm using your plugin and it show that in error log. Can you fix it, thanks you!!!

L 05/20/2023 - 01:24:20: SourceMod error session started
L 05/20/2023 - 01:24:20: Info (map "c1m2_streets") (file "D:\SteamLibrary\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\logs\error s_20230520.log")
L 05/20/2023 - 01:24:20: [SM] Exception reported: Array index out-of-bounds (index 32, limit 32)
L 05/20/2023 - 01:24:20: [SM] Blaming: l4d2unstick.smx
L 05/20/2023 - 01:24:20: [SM] Call stack trace:
L 05/20/2023 - 01:24:20: [SM] [1] Line 102, D:\SteamLibrary\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\ l4d2unstick.sp::OnClientDisconnect
L 05/20/2023 - 01:26:02: [SM] Exception reported: Array index out-of-bounds (index 32, limit 32)
L 05/20/2023 - 01:26:02: [SM] Blaming: l4d2unstick.smx
L 05/20/2023 - 01:26:02: [SM] Call stack trace:
L 05/20/2023 - 01:26:02: [SM] [1] Line 102, D:\SteamLibrary\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\ l4d2unstick.sp::OnClientDisconnect
L 05/20/2023 - 01:273: [SM] Exception reported: Array index out-of-bounds (index 32, limit 32)
L 05/20/2023 - 01:273: [SM] Blaming: l4d2unstick.smx
L 05/20/2023 - 01:273: [SM] Call stack trace:
L 05/20/2023 - 01:273: [SM] [1] Line 102, D:\SteamLibrary\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\ l4d2unstick.sp::OnClientDisconnect
L 05/20/2023 - 01:27:58: [SM] Exception reported: Array index out-of-bounds (index 32, limit 32)
L 05/20/2023 - 01:27:58: [SM] Blaming: l4d2unstick.smx
L 05/20/2023 - 01:27:58: [SM] Call stack trace:
L 05/20/2023 - 01:27:58: [SM] [1] Line 102, D:\SteamLibrary\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\ l4d2unstick.sp::OnClientDisconnect
L 05/20/2023 - 01:29:28: [SM] Exception reported: Array index out-of-bounds (index 32, limit 32)
L 05/20/2023 - 01:29:28: [SM] Blaming: l4d2unstick.smx
L 05/20/2023 - 01:29:28: [SM] Call stack trace:
L 05/20/2023 - 01:29:28: [SM] [1] Line 102, D:\SteamLibrary\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\ l4d2unstick.sp::OnClientDisconnect
L 05/20/2023 - 013:15: [SM] Exception reported: Array index out-of-bounds (index 32, limit 32)
L 05/20/2023 - 013:15: [SM] Blaming: l4d2unstick.smx
L 05/20/2023 - 013:15: [SM] Call stack trace:
L 05/20/2023 - 013:15: [SM] [1] Line 102, D:\SteamLibrary\steamapps\common\Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\scripting\ l4d2unstick.sp::OnClientDisconnect
chungocanh12 is offline
Reply


Thread Tools
Display Modes

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 04:13.


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