Help me with the C4 Function
#6

Код:
public ExplodeC4(playerid)
{
	new Float:x, Float:y, Float:z;
	GetObjectPos(C4T, x, y, z);
	if(IsPlayerInRangeOfPoint(playerid, x, y, z, 4.0))
       {
		DestroyObject(C4T);
		CreateExplosion(x, y, z, 7, 10.0);
		C4T= 0;
	}
        return 1;
}
He wants it like this, So It detects the objects location and If a player is near it.

@Black your one wouldnt ahve worked, he wanted it to detect it like this.


Hopefully this helps you
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: 9 Guest(s)