Quote:
Originally Posted by HuSs3n
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; }
this is just a fix for your code
if ANY player IS NOT near that point ,it will destroy the object for all.
|
Doesnt work. Still is spawned when leaving the area.