17.02.2012, 23:22
I never worked on these actually, but reading a tutorial, I think you'd need a stock for the IsPlayerInArea.
Paste it on the bottom of the script. Also use [code] tags to display any code that you may have.
Cut it out from the OnPlayerUpdate...
Код:
IsPlayerInArea(playerid, Float:MinX, Float:MinY, Float:MaxX, Float:MaxY) { new Float:X, Float:Y, Float:Z; GetPlayerPos(playerid, X, Y, Z); if(X >= MinX && X <= MaxX && Y >= MinY && Y <= MaxY) { return 1; } return 0; }
Cut it out from the OnPlayerUpdate...