When i enter a place all CMD disable
#10

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;
    }
^that will place the exit where you enterd the hospital and removed the return 0; after the cmd so it can reach the rest of you code
Reply


Messages In This Thread
When i enter a place all CMD disable - by Red_Dragon. - 27.11.2012, 18:24
Re: When i enter a place all CMD disable - by Red_Dragon. - 27.11.2012, 18:44
AW: When i enter a place all CMD disable - by Skimmer - 27.11.2012, 20:12
Re: When i enter a place all CMD disable - by Red_Dragon. - 28.11.2012, 17:26
Re: When i enter a place all CMD disable - by NumbSkull - 28.11.2012, 17:28
Re: When i enter a place all CMD disable - by Red_Dragon. - 28.11.2012, 17:43
Re: When i enter a place all CMD disable - by Glad2BeHere - 28.11.2012, 17:56
Re: When i enter a place all CMD disable - by Red_Dragon. - 28.11.2012, 18:05
Re: When i enter a place all CMD disable - by Red_Dragon. - 30.11.2012, 15:53
Re: When i enter a place all CMD disable - by NumbSkull - 30.11.2012, 17:17

Forum Jump:


Users browsing this thread: 1 Guest(s)