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

Broken respawn after latest cs go update


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Virginia
Member
Join Date: Aug 2015
Old 09-04-2015 , 04:23   Broken respawn after latest cs go update
Reply With Quote #1

After latest cs go update the respawn in first round is seems to be broken, so only plugins like !zspawn (it seems like auto-!zspawn doesn't work) or admins can spawn you. It still being playble because this bug appears only in first round but its kinda annoying to type !zspawn everytime and not all people know this and sometimes they just waiting for respawn, blaming map and then disconnect. This update brought a lot of bugs to us, but respawn in first round is broken only in zombie:reloaded so im not sure if Valve will ever fix this.

Last edited by Virginia; 09-04-2015 at 04:28.
Virginia is offline
Morell
AlliedModders Donor
Join Date: Jun 2010
Location: World
Old 09-04-2015 , 06:30   Re: Broken respawn after latest cs go update
Reply With Quote #2

This plugin will make players 'use' zspawn when they join a team, so that they can join without issues.

Code:
#include <sourcemod>

public OnPluginStart()
{	
	HookEvent("player_team", Event_OnPlayerTeam, EventHookMode_Pre);	
}

public Action:Event_OnPlayerTeam(Handle:event, const String:name[], bool:dontBroadcast)
{
    new client = GetClientOfUserId(GetEventInt(event, "userid"));
    if(!client || !IsClientInGame(client))
        return Plugin_Continue;

    if(!IsPlayerAlive(client))
        CreateTimer(0.1, Timer_ZSpawn, GetClientUserId(client), TIMER_FLAG_NO_MAPCHANGE);
        
    return Plugin_Continue;
}

public Action:Timer_ZSpawn(Handle:timer, any:userid)
{
    new client = GetClientOfUserId(userid);
    if(!client)
        return Plugin_Continue;

    new iTeam = GetClientTeam(client);
    if(iTeam <= 1)
        return Plugin_Continue;

    if(IsPlayerAlive(client))
        return Plugin_Continue;

    ClientCommand(client, "zspawn");

    return Plugin_Continue;
}
__________________
Morell is offline
RoW_eXtreme911
New Member
Join Date: Sep 2015
Old 09-04-2015 , 07:03   Re: Broken respawn after latest cs go update
Reply With Quote #3

My Server also have the same problem that this Plugin "Auto !zspawn" https://forums.alliedmods.net/showthread.php?p=1076681 seems to be broken for cs go. I think Morell's code will work but i have no idea how to convert a plugin.

Here is the download for the plugin was easier then i thought thanks to morell !!! it is just for the people which dont know about the compiler.
Attached Files
File Type: smx autozspawn.smx (4.1 KB, 294 views)
File Type: sp Get Plugin or Get Source (autozspawn.sp - 622 views - 1.2 KB)

Last edited by RoW_eXtreme911; 09-04-2015 at 07:39. Reason: Added plugin
RoW_eXtreme911 is offline
bebe9b
Veteran Member
Join Date: May 2009
Location: Romania
Old 09-04-2015 , 07:28   Re: Broken respawn after latest cs go update
Reply With Quote #4

Thx man
__________________
respecta si vei fi respectat

Last edited by bebe9b; 09-04-2015 at 07:49.
bebe9b is offline
veli
Senior Member
Join Date: Apr 2012
Location: Netherlands
Old 09-04-2015 , 17:16   Re: Broken respawn after latest cs go update
Reply With Quote #5

thx Morell .
veli is offline
Virginia
Member
Join Date: Aug 2015
Old 09-04-2015 , 20:04   Re: Broken respawn after latest cs go update
Reply With Quote #6

Thank you! In combination with auto round restart after mapchange everything works fine.

Last edited by Virginia; 09-04-2015 at 21:10.
Virginia is offline
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 08:49.


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