Так лучше будет....
Код
#include <sdktools>
public OnPluginStart()
{
RegConsoleCmd("boom", Command_Boom);
}
public Action:Command_Boom(client, args)
{
new Float:Orig[3], Float:Spawn[3];
GetClientAbsOrigin(client, Orig);
new Num = 4; // Кол-во точек вокруг заданной позиции
new Degrees = 360;
new Coeff = 0;
new Mul = 100;
for(new I = 0; I < Num; I++)
{
new Float:OMG = DegToRad(float(I * (Degrees / Num) + Coeff));
Spawn[0] = Orig[0] + Sine(OMG) * Mul;
Spawn[1] = Orig[1] + Cosine(OMG) * Mul;
Spawn[2] = Orig[2] + 0.0;
boom(Spawn);
}
}
stock boom(Float:pos[3])
{
new bm = CreateEntityByName("env_explosion");
DispatchSpawn(bm);
TeleportEntity(bm, pos, NULL_VECTOR, NULL_VECTOR);
AcceptEntityInput(bm, "Explode");
AcceptEntityInput(bm, "Kill");
}