01.06.2016, 19:22
pawn Код:
if(killerid != INVALID_PLAYER_ID)
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;
}