28.07.2012, 15:30
This is what i tried so far
pawn Код:
new targetid,
Float:x,
Float:y,
Float:z
Float:tx,
Float:ty
Float:tz;
GetObjectPos(gRocketObj[i], x, y, z);// Get the position of the object
if(IsPlayerInRangeOfPoint(playerid, tx, ty, tz); //Pos of Target
{
CreateExplosion(x, y, z, 11, 2.50); // Create an explosion at this position
DestroyObject(gRocketObj[i]); // Destroy the object
}