explosion detection problem
#3

pawn Код:
if(killerid != INVALID_PLAYER_ID)
killerid is valid so here you go killerid xD

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(reason == 51)
    {
        reason = 0;
        for(new i = GetPlayerPoolSize(), j; i > -1; i--)
            if(IsPlayerConnected(i) && i != playerid)
            {
                for(j = 0; j < 6; j++)
                    if(IsPlayerInRangeOfPoint(playerid, 10.0, pInfo[i][C4X][j], pInfo[i][C4Y][j], pInfo[i][C4Z][j]))
                    {
                        reason = 1;
                        killerid = i;
                        break;
                    }

                if(reason == 1) break;
            }

        reason = 51;
    }
    return 1;
}
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: 1 Guest(s)