if (strcmp("/enter", cmdtext, true) == 0) { if(PlayerToPoint(3.0, playerid, 1043.1818,1011.2654,11.0000)) // Coords for /enter { SetPlayerVirtualWorld(playerid,1); // Go in VirtualWorld 1 SetPlayerInterior(playerid, 10); // Interior ID SetPlayerPos(playerid,2269.1873,-1210.4393,1047.5625); // PlayerPos SetPlayerFacingAngle(playerid, 22.0477); // facing angle } return 1; } // *********** /exit command *********** if (strcmp("/exit", cmdtext, true) == 0) { if(PlayerToPoint(3.0, playerid, 238.7357,138.6267,1003.0234)) //EXIT Coord { if(GetPlayerInterior(playerid) == 3) // If is Player in Interior [24/7 InteriorID] { if(GetPlayerVirtualWorld(playerid) == 1) // if Virtual World 1 then { SetPlayerPos(playerid,-1615.6654,682.2216,7.1875); // setplayerpos SetPlayerVirtualWorld(playerid,0); // set virtual world to 0 SetPlayerInterior(playerid, 0); // set interior to 0 } } } return 1; }