OnPlayerDeath not being called
#1

Hey,
Title says everything. Basically this callback is not getting called, I don't know what's the problem
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
        printf("%d just died",playerid);
	mire[playerid] = true;
	if(killerid != INVALID_PLAYER_ID)
	{
		givePlayerXp(killerid,randomEx(50,100));
		pInfo[killerid][karma]+=10;
		Achievement(killerid,piktadarys);
	}
	if(reason == WEAPON_DROWN) Achievement(playerid,nuskesti);
	HideTools(playerid);
        return 1;
}
I don't get anything printed.
P.S. I have sob installed, maybe it's the problem?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)