11.05.2014, 09:26
Код:
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; }
@Black your one wouldnt ahve worked, he wanted it to detect it like this.
Hopefully this helps you