13.05.2016, 14:19
Can someone help me build it? I do not have any single idea on how to make it

enum e_Explosion
{
Float: e_X,
Float: e_Y,
Float: e_Z,
Float: e_radius,
e_timestamp
};
new Explosion[e_Explosion];
stock HF_CreateExplosion(Float: X, Float: Y, Float: Z, type, Float: radius)
{
Explosion[e_X] = X;
Explosion[e_Y] = Y;
Explosion[e_Z] = Z;
Explosion[e_radius] = radius;
Explosion[e_timestamp] = gettime();
return CreateExplosion(X, Y, Z, type, radius);
}
#if defined _ALS_CreateExplosion
#undef CreateExplosion
#else
#define _ALS_CreateExplosion
#endif
#define CreateExplosion HF_CreateExplosion
public OnPlayerDeath(playerid, killerid, reason)
{
if (reason == 51 && gettime() - Explosion[e_timestamp] < 5 && IsPlayerInRangeOfPoint(playerid, Explosion[e_radius], Explosion[e_X], Explosion[e_Y], Explosion[e_Z]))
{
// code..
}
return 1;
}