18.08.2011, 12:26
pawn Код:
public OnBombExplode(playerid, num, Float:x, Float:y, Float:z)
{
//is called everytime a bomb explodes
for(new i = 0; i < MAX_PLAYERS; i ++) {
if(GetPlayerDistanceToPoint(i, x, y, z) < float(2 * gBombTypes[btype[playerid][num]][2])) {
SetPVarInt(i, "nearExp", playerid);
SetTimerEx("ResetNearExp", 15000, 0, "i", i);
}
}
return 1;
}