29.10.2012, 21:44
Alright here is the code below
Код:
//Add the commands below under public OnPlayerCommandText as you see. public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/enter", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 2.0, 627.4248, -571.8760, 17.8942)) { SetPlayerPos(playerid, -322.197998,302.497985,999.148437); SetPlayerInterior(playerid, 5); // interior id SetPlayerVirtualWorld(playerid, 0); // change this if you want to any VirtualWorld SetCameraBehindPlayer(playerid); } return 1; } if (strcmp("/exit", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid,2.0, -322.197998,302.497985,999.148437)) { SetPlayerPos(playerid, 627.4248, -571.8760, 17.8942); SetPlayerInterior(playerid, 0);//leave 0 SetPlayerVirtualWorld(playerid, 0); // leave 0 SetCameraBehindPlayer(playerid); return 1; } } return 0; }