explosion detection problem
#1

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	if(killerid != INVALID_PLAYER_ID)
	{
	    for(new i = 0; i < MAX_PLAYERS; i++)
	    {
	        for(new j = 0; j < 6; j++)
	        {
	        	if(IsPlayerConnected(i) && reason == 51 && IsPlayerInRangeOfPoint(playerid, 10.0, pInfo[i][C4X][j], pInfo[i][C4Y][j], pInfo[i][C4Z][j]))
	        	{
	            	killerid = i;
				}
			}
		}
         }
         return 1;
}
The problem is the killerid never shows up
Reply


Messages In This Thread
explosion detection problem - by TheSimpleGuy - 01.06.2016, 10:49
Re: explosion detection problem - by Dayrion - 01.06.2016, 12:54
Re: explosion detection problem - by Jefff - 01.06.2016, 19:22

Forum Jump:


Users browsing this thread: 2 Guest(s)