boom on wrong position
#1


i have the script like this:

Код:
{
	new Float:X;
	new Float:Y;
	new Float:Z;
	GetPlayerPos(playerid, X, Y, Z);
	new mine = CreateObject(1213, X, Y, Z, 0, 0, 96);
	if (strcmp("/mine", cmdtext, true, 10) == 0)
	{
		CreateObject(mine, X, Y, Z, 0, 0, 96);
		return 1;
	}
	new Float:mineactiveX;
	new Float:mineactiveY;
	new Float:mineactiveZ;
	GetObjectPos(mine, mineactiveX, mineactiveY, mineactiveZ);
	new mineactive = CreateObject(mine, mineactiveX, mineactiveY, mineactiveZ, 0, 0, 96);
	if (strcmp("/mineactivate", cmdtext, true, 10) == 0)
	{
		CreateObject(mineactive, mineactiveX, mineactiveY, mineactiveZ, 0, 0, 96);
		  {
		  	if(IsPlayerInRangeOfPoint(playerid, 1.0, mineactiveX, mineactiveY, mineactiveZ))
		  	CreateExplosion(mineactiveX, mineactiveY, mineactiveZ, 4, 10.0);

		  }
		return 1;
	}
	return 0;
}
but when i do /mineactivate it explodes me!!

how to solve that??
Reply


Messages In This Thread
boom on wrong position - by legodude - 02.02.2010, 12:50
Re: boom on wrong position - by legodude - 02.02.2010, 13:07
Re: boom on wrong position - by lameguy - 02.02.2010, 13:27
Re: boom on wrong position - by legodude - 02.02.2010, 17:35
Re: boom on wrong position - by legodude - 03.02.2010, 14:59
Re: boom on wrong position - by legodude - 04.02.2010, 13:39
Re: boom on wrong position - by SamAlexSam - 04.02.2010, 13:41
Re: boom on wrong position - by legodude - 06.02.2010, 13:21
Re: boom on wrong position - by ¤Adas¤ - 06.02.2010, 13:26
Re: boom on wrong position - by lameguy - 08.02.2010, 12:27

Forum Jump:


Users browsing this thread: 5 Guest(s)