27.05.2009, 14:47
I use this script:
When I type /enter near the spot, I come to the interior I want, but when I type /exit I teleport back to the door... but, the world is not there, I can just see gray, no houses, nothing...
What is wrong?
Код:
if (strcmp("/enter", cmdtext, true) == 0) { if(PlayerToPoint(5.0, playerid, 1568.5195,-1690.6931,5.8906)) { SetPlayerPos(playerid, -2028.3383,-104.9234,1035.1719); SetPlayerInterior(playerid, 3); } else { SendClientMessage(playerid, 0xFF0000AA, "You must be closer!"); } return 1; } if (strcmp("/exit", cmdtext, true) == 0) { SetPlayerInterior(playerid, 3); if(PlayerToPoint(5.0, playerid, -2028.3383,-104.9234,1035.1719)) { SetPlayerPos(playerid, 1568.5195,-1690.6931,5.8906); } else { SendClientMessage(playerid, 0xFF0000AA, "You must be closer!"); } return 1; } }
What is wrong?