OnPlayerDeath function not being called
#3

Quote:
Originally Posted by xSkin
View Post
check if killerid != INVALID_PLAYER_ID
tried, killerid isn't invalid

PHP Code:
public OnPlayerDeath(playeridkilleridreason)
{
    if(
killerid==INVALID_PLAYER_ID) return print("Error");
    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;

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: 4 Guest(s)