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

l4d respawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation
Old 04-23-2019 , 07:40   l4d respawn
Reply With Quote #1

Hi. Why it doesn't work anymore. Is it already dead in this game?

PHP Code:
public Action eventPlayerSpawn(Event event, const char[] namebool dontBroadcast)
{
    
    if((
client GetClientOfUserId(event.GetInt("userid"))) && client && /*!IsFakeClient(client) && (newMapActivatedPlayers > 4)*/GetClientTeam(client) == 2)
        
CreateTimer(1.0Timer_RespawnclientTIMER_FLAG_NO_MAPCHANGE);
    
}

public 
Action Timer_Respawn(Handle timerany client)
{
    if(
client && IsClientInGame(client) && !IsFakeClient(client))
    {
        [
U]SDKCall(hRoundRespawnclient);[/U]
        for(
int i 1<= MaxClientsi++) if (!= client && IsClientInGame(i) && GetClientTeam(i) == && IsPlayerAlive(i))
        {
            
float pos[3];
            
GetClientAbsOrigin(ipos);
            
TeleportEntity(clientposNULL_VECTOR,NULL_VECTOR);
            break;
        }
    }
    return 
Plugin_Stop;


Last edited by Alexmy; 04-23-2019 at 08:22.
Alexmy is offline
CliptonHeist
Senior Member
Join Date: Feb 2016
Old 04-23-2019 , 07:53   Re: l4d respawn
Reply With Quote #2

https://forums.alliedmods.net/showpo...&postcount=288

I use this and it works fine for me.
CliptonHeist is offline
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation
Old 04-23-2019 , 08:21   Re: l4d respawn
Reply With Quote #3

Quote:
Originally Posted by CliptonHeist View Post
https://forums.alliedmods.net/showpo...&postcount=288

I use this and it works fine for me.
Thank you very much, but I am not interested.
Alexmy is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 04-23-2019 , 10:40   Re: l4d respawn
Reply With Quote #4

Quote:
Originally Posted by Alexmy View Post
Thank you very much, but I am not interested.
Not interested in a solution which works, ok
__________________
Silvers is offline
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation
Old 04-23-2019 , 10:44   Re: l4d respawn
Reply With Quote #5

Quote:
Originally Posted by Silvers View Post
Not interested in a solution which works, ok
No =). I found a solution to my code. This is affected by the time the player appears, if it is too early then it does not work. I want to reanimate the Bebop plugin and it seems I succeeded. Although you still need to check =).
Alexmy is offline
CrazySkull2k
Member
Join Date: Feb 2017
Old 06-25-2019 , 20:14   Re: l4d respawn
Reply With Quote #6

Thanks been searching for that too
CrazySkull2k 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 16:32.


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