30.06.2011, 20:31
you can do it like this:
explosion type's can be found here
i think it will help you
pawn Код:
if(strcmp(cmdtext,"/plant",true)== 0)
{
new Float:X,Float:Y,Float:Z,bomb;
GetPlayerPos(playerid,X,Y,Z);
bomb = CreateObject(ID,X,Y,Z+2,00,00,00,250); // find your object ID
return 1;
}
if(strcmp(cmdtext,"/explode",true)== 0)
{
new Float:X,Float:Y,Float:Z;
GetObjectPos(bomb,X,Y,Z);
CreateExplosion(X,Y,Z,type,Float Radius); // use explosion type what you want
DestroyObject(bomb);
return 1;
}
i think it will help you

