23.06.2012, 23:36
I am with my SGS2, so I'll try to explain. The link I sent you - there are two boxes under Returning multiple values. For your code, you need the first box with GetXYInFrontOfPlayer without the vehicle check. OnPlayerDeath, you type
new Float
, Float:y, Float:z;
GetPlayerPos(playerid,x,y,z);
GetXYInFrontOfPlayer(playerid,x,y,-1);//-1 checks coords behind playerid.
IsPlayerInRangeOfPoint(killerid,...);//Here you check if killerid is next to the point behind playerid.
new Float

GetPlayerPos(playerid,x,y,z);
GetXYInFrontOfPlayer(playerid,x,y,-1);//-1 checks coords behind playerid.
IsPlayerInRangeOfPoint(killerid,...);//Here you check if killerid is next to the point behind playerid.