04.06.2009, 16:37
When I go to my position and type /enter, I just spawn at the other /enter position...
The script:
Thanks
The script:
Код:
if (strcmp("/enter", cmdtext, true) == 0) { if(PlayerToPoint(5.0, playerid, -1605.6515,712.0331,13.8672)) SetPlayerPos(playerid, 246.7840,63.9002,1003.6406); SetPlayerInterior(playerid, 6); return 1; } if (strcmp("/exit", cmdtext, true) == 0) { if(PlayerToPoint(5.0, playerid, 246.7840,63.9002,1003.6406)) SetPlayerPos(playerid, -1605.6515,712.0331,13.8672); SetPlayerInterior(playerid, 0); return 1; } if (strcmp("/enter", cmdtext, true) == 0) { if(PlayerToPoint(5.0, playerid, -1606.3541,672.6132,-5.2422)) SetPlayerPos(playerid, 246.7840,63.9002,1003.6406); SetPlayerInterior(playerid, 6); return 1; } if (strcmp("/exit", cmdtext, true) == 0) { if(PlayerToPoint(5.0, playerid, 246.7840,63.9002,1003.6406)) SetPlayerPos(playerid, -1606.3541,672.6132,-5.2422); SetPlayerInterior(playerid, 0); return 1; }