24.08.2012, 16:42
(
Последний раз редактировалось Sam5513; 24.08.2012 в 19:37.
Причина: More accurate title.
)
Hey guys.
Recently I was trying to develop a script for a server, by which if you would stand on a place, a siren would spawn and once you would get out, it would despawn.
I have been trying to work it out the whole day now but whenever I exit the place, the sirens dont despawn.
I'd really appreciate if you could help me please. Thank you.
Here is so far what I have done:
Recently I was trying to develop a script for a server, by which if you would stand on a place, a siren would spawn and once you would get out, it would despawn.
I have been trying to work it out the whole day now but whenever I exit the place, the sirens dont despawn.
I'd really appreciate if you could help me please. Thank you.
Here is so far what I have done:
Код:
public OnPlayerUpdate(playerid) { if(IsPlayerInRangeOfPoint(playerid, 0.1, 1207.0170, -1333.9816, 13.3984)) { CreateObject(18646, 1207.5631, -1334.1051, 13.5816); CreateObject(18646, 1206.5031, -1334.1051, 13.5816); } if(!IsPlayerInRangeOfPoint(playerid, 0.1, 1207.0170, -1333.9816, 13.3984)) { if(IsValidObject(18646, 1207.5631, -1334.1051, 13.5816)) { DestroyObject(18646, 1207.5631, -1334.1051, 13.5816); DestroyObject(18646, 1206.5031, -1334.1051, 13.5816); } } return 1; }