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);
}
}
if(!strcmp(cmdtext, "/exit", true))
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, 286.148986,-40.644397,1001.515625))
{
SetPlayerPos(playerid, -2655.207519,639.643737,14.454549);// SF Hospital Exit
SetPlayerInterior(playerid, 0);
}
}
return 1;
}
all commands |
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, 286.148986,-40.644397,1001.515625))
{
SetPlayerPos(playerid, -2655.207519,639.643737,14.454549);// SF Hospital Exit
SetPlayerInterior(playerid, 0);
}
return 1;
}
return 0;
}
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;
}