AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [L4D2] Use defib animation when respawn (https://forums.alliedmods.net/showthread.php?t=316373)

Beeee 05-20-2019 04:03

[L4D2] Use defib animation when respawn
 
Hello, I'm here to ask how to respawn using
PHP Code:

SDKCall(hRoundRespawnclient); 

and use the defib animation because without it the respawn is instant.
I tried to find a solution but I didn't find it.I've tried also to remove dead bodies with this code https://forums.alliedmods.net/showthread.php?t=129095 but it gives me errors when compiling

Beeee 05-22-2019 05:57

Re: [L4D2] Use defib animation when respawn
 
Quote:

Originally Posted by Beeee (Post 2652369)
Hello, I'm here to ask how to respawn using
PHP Code:

SDKCall(hRoundRespawnclient); 

and use the defib animation because without it the respawn is instant.
I tried to find a solution but I didn't find it.I've tried also to remove dead bodies with this code https://forums.alliedmods.net/showthread.php?t=129095 but it gives me errors when compiling

Can someone help me?

BHaType 05-22-2019 07:08

Re: [L4D2] Use defib animation when respawn
 
i dont understand what are you need?

PHP Code:

#include sdktools

public OnPluginStart()
{
    
HookEvent("dead_survivor_visible"SeesDeathPlayer);
}

public 
SeesDeathPlayer(Handle:eventString:event_name[], bool:dontBroadcast)
{
    
int fiksik GetEventInt(event"subject");
    
CreateTimer(0.1vKillEntIndexToEntRef(fiksik))
}

public 
Action vKill(Handle timerint fiksik)
{
    
int iEnt EntRefToEntIndex(fiksik)
    
AcceptEntityInput(iEnt"kill")




All times are GMT -4. The time now is 08:28.

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