Check if a player is behind a player
#12

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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)