SA-MP Forums Archive
OnPlayerDeath not being called - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerDeath not being called (/showthread.php?tid=576555)



OnPlayerDeath not being called - zaibaslr2 - 05.06.2015

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?