Help me with the C4 Function
#2

Код:
public ExplodeC4()
{
	 new Float:x, Float:y, Float:z;
	 GetObjectPos(C4T, x, y, z);
	 CreateExplosion(x, y, z, 7, 10.0);
	 DestroyObject(C4T);
	 C4T= 0;
	return 1;
}
Try this, im not sure on what you want, If you said you have a bug with the code. I placed the object after the explosion, you might be trying to get the cords of the object after it gets destroyed.

Also what is the (playerid) for? are you doing the explosion for a player or for everyone?
Reply


Messages In This Thread
Help me with the C4 Function - by Sojo12 - 11.05.2014, 08:49
Re: Help me with the C4 Function - by Ciandlah - 11.05.2014, 09:07
Re: Help me with the C4 Function - by iFiras - 11.05.2014, 09:10
Re: Help me with the C4 Function - by Sojo12 - 11.05.2014, 09:14
Re : Help me with the C4 Function - by ReD_HunTeR - 11.05.2014, 09:21
Re: Help me with the C4 Function - by Ciandlah - 11.05.2014, 09:26
Re: Help me with the C4 Function - by Sojo12 - 11.05.2014, 13:08
Re: Help me with the C4 Function - by Sojo12 - 11.05.2014, 13:24
Re: Help me with the C4 Function - by rickisme - 11.05.2014, 13:30
Re: Help me with the C4 Function - by Sojo12 - 11.05.2014, 13:33

Forum Jump:


Users browsing this thread: 1 Guest(s)