Explosion Timer
#4

pawn Код:
//top of script
new Float:bx, Float:by, Float:bz;
//onplayercommandtext
if(strcmp(cmdtext, "/plantc4", true) == 0)
{
  GetPlayerPos(playerid, bx, by, bz);
  ApplyAnimation(playerid,"BOMBER","BOMB_PLANT",4.1,1,1,1,1,1);
  SetTimer("C4", 10000, false);
}
//
public c4()
{
  CreateExplosion(bx, by, bz, 7, 10);
}
Not, you only made the floats local variables and not global!

Also, they way you did CreateExplosion is incorrect, this is what it is.
pawn Код:
CreateExplosion(Float:x, Float:y, Float:z, type, Float:radius);
Reply


Messages In This Thread
Explosion Timer - by JoeDaDude - 14.06.2009, 15:57
Re: Explosion Timer - by Grim_ - 14.06.2009, 15:58
Re: Explosion Timer - by JoeDaDude - 14.06.2009, 16:01
Re: Explosion Timer - by Grim_ - 14.06.2009, 16:07

Forum Jump:


Users browsing this thread: 1 Guest(s)