Explosive Object?
#5

you can do it like this:
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;
}
explosion type's can be found here

i think it will help you
Reply


Messages In This Thread
Explosive Object? - by Sascha - 30.06.2011, 19:22
Re: Explosive Object? - by Alvord - 30.06.2011, 19:28
Re: Explosive Object? - by BigETI - 30.06.2011, 19:29
Re: Explosive Object? - by Sascha - 30.06.2011, 19:30
Re: Explosive Object? - by Amel_PAtomAXx - 30.06.2011, 20:31
Re: Explosive Object? - by Sascha - 30.06.2011, 20:41
Re: Explosive Object? - by Tommy_Mandaz - 30.06.2011, 20:42
Re: Explosive Object? - by Sascha - 30.06.2011, 20:44
Re: Explosive Object? - by Tommy_Mandaz - 30.06.2011, 20:51
Re: Explosive Object? - by Amel_PAtomAXx - 30.06.2011, 21:02

Forum Jump:


Users browsing this thread: 1 Guest(s)