01.02.2010, 19:30
That looks fine.
May be the coordinates are off, try outputting your coordinates, so you can make sure they are in the range as you step on the bed
Oh and if you want an area check system that has full functionality see sig V
May be the coordinates are off, try outputting your coordinates, so you can make sure they are in the range as you step on the bed
Код:
public IsPlayerInArea() { new Float:x,Float:y,Float:z; for(new i=0;i<MAX_PLAYERS;i++) { GetPlayerPos(i,x,y,z); new msg[128]; format(msg, sizeof(msg), "Coordinates: %f, %f, %f", x, y, z); SendClientMessage(i,COLOR_RED,"Bed #1: Menace"); if(x >= 238.6068 && x <= 240.6635 && y >= 2066.3640 && y <= 2068.2859 && z <=23.7469) //bed 1 { SendClientMessage(i,COLOR_RED,"Bed #1: Menace"); continue; } if(x >=238.5978 && x <=240.6654 && y >= 2063.0134 && y <= 2064.9238 && z <=23.7469) //bed 2 { SendClientMessage(i,COLOR_RED,"Bed #2: VonLeeuwen"); continue; } } return 1; }