30.11.2012, 17:17
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/enter", true))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, -2655.207519,639.643737,14.454549))
{
SetPlayerPos(playerid, 1170.0588,-1352.4019,2423.0461); // SF Hospital Entrance
SetPlayerInterior(playerid, 1);
}
return 1;
}
if(strcmp(cmdtext, "/exit", true))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1170.0588,-1352.4019,2423.0461))
{
SetPlayerPos(playerid, -2655.207519,639.643737,14.454549);// SF Hospital Exit
SetPlayerInterior(playerid, 0);
}
return 1;
}