OnPlayerDeath function not being called
#1

Hello, OnPlayerDeath function isn't calling in my gamemode

PHP Code:
public OnPlayerDeath(playeridkilleridreason)
{
    print(
"Player died");
    if (
PlayerInfo[playerid][pInjured] == 0)
    {
        
PlayerInfo[playerid][pInjured] = 1;
        
GetPlayerPos(playeridinj_x,inj_y,inj_z);
        
GetPlayerFacingAngle(playeridinjured_angle);
    }
    else if (
PlayerInfo[playerid][pInjured] == 1)
    {
        
KillTimer(AcceptDeathTimer[playerid]);
        
KillTimer(LoseHealthTimer[playerid]);
        
AcceptDeath[playerid] = 0;
        
PlayerInfo[playerid][pInjured] = 0;
        
Hospitalized[playerid] = 1;
    }
    return 
1;

I tried with only print but still, it doesn't work
Reply


Messages In This Thread
OnPlayerDeath function not being called - by akib - 20.02.2019, 01:22
Re: OnPlayerDeath function not being called - by xSkin - 20.02.2019, 03:31
Re: OnPlayerDeath function not being called - by akib - 20.02.2019, 04:48
Re: OnPlayerDeath function not being called - by TheToretto - 20.02.2019, 06:16
Re: OnPlayerDeath function not being called - by akib - 20.02.2019, 11:03
Re: OnPlayerDeath function not being called - by TheToretto - 20.02.2019, 12:01
Re: OnPlayerDeath function not being called - by akib - 20.02.2019, 12:15
Re: OnPlayerDeath function not being called - by TheToretto - 20.02.2019, 12:31
Re: OnPlayerDeath function not being called - by akib - 20.02.2019, 12:37
Re: OnPlayerDeath function not being called - by Calisthenics - 20.02.2019, 12:50

Forum Jump:


Users browsing this thread: 1 Guest(s)