14.06.2009, 16:07
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);
}
Also, they way you did CreateExplosion is incorrect, this is what it is.
pawn Код:
CreateExplosion(Float:x, Float:y, Float:z, type, Float:radius);