27.07.2010, 23:02
Put the explosion in a public function and use a timer to call it.
pawn Код:
//Top of the script
forward Explosion(Float:X, Float:Y, Float:Z, type, Float:radius);
pawn Код:
//Outside other public functions
public Explosion(Float:X, Float:Y, Float:Z, type, Float:radius)
{
CreateExplosion(X, Y, Z, type, radius);
return 1;
}
pawn Код:
//In a command. This will create 3 explosions with a 1 second interval between them.
CreateExplosion(Float:X, Float:Y, Float:Z, type, Float:radius); //Replace them with the appropriate information
SetTimerEx("Explosion", 1000, false, "fffdf", Float:X, Float:Y, Float:Z, type, Float:radius); //Again, replace the same variables
SetTimerEx("Explosion", 2000, false, "fffdf", Float:X, Float:Y, Float:Z, type, Float:radius); //Again, replace the same variables