24.08.2012, 17:28
pawn Код:
new a,b;
public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 1.0, 1207.0170, -1333.9816, 13.3984))
{
if(!IsValidObject(a)) a=CreateObject(18646, 1207.5631, -1334.1051, 13.5816);
if(!IsValidObject(b)) b=CreateObject(18646, 1206.5031, -1334.1051, 13.5816);
}
else
{
if(IsValidObject(a)) DestroyObject(a);
if(IsValidObject(b)) DestroyObject(b);
}
return 1;
}
if ANY player IS NOT near that point ,it will destroy the object for all.