Just checking enter command
#1

Should this be like this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/enter", cmdtext, true, 10) ==0)////////////////////////////////////////
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0, 2207.5254,-1100.4119,31.5547))//--House00000---
    {
        SetPlayerPos(playerid, 2209.3159,-1106.1302,14.9276);
        SetPlayerFacingAngle(playerid, 68.2839);
        SetCameraBehindPlayer(playerid);
        SetPlayerInterior(playerid, 10);
    }//--------------------------------------------------------------------------------
    if(IsPlayerInRangeOfPoint(playerid, 5.0, 1412.0670,-1699.9690,13.5395))//--Bank001---
    {
        SetPlayerPos(playerid, 1415.951171,-988.971191,1639.980224);
        SetCameraBehindPlayer(playerid);
        SetPlayerInterior(playerid, 10);
    }
    return 1;
    }//--------------------------------------------------------------------------------
    return 0;
}
or like this:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp("/enter", cmdtext, true, 10) ==0)////////////////////////////////////////
    {
    if(IsPlayerInRangeOfPoint(playerid, 5.0, 2207.5254,-1100.4119,31.5547))//--House00000---
    {
        SetPlayerPos(playerid, 2209.3159,-1106.1302,14.9276);
        SetPlayerFacingAngle(playerid, 68.2839);
        SetCameraBehindPlayer(playerid);
        SetPlayerInterior(playerid, 10);
    }//--------------------------------------------------------------------------------
    else if(IsPlayerInRangeOfPoint(playerid, 5.0, 1412.0670,-1699.9690,13.5395))//--Bank0001---
    {
        SetPlayerPos(playerid, 1415.951171,-988.971191,1639.980224);
        SetCameraBehindPlayer(playerid);
        SetPlayerInterior(playerid, 10);
    }
    return 1;
    }//--------------------------------------------------------------------------------
    return 0;
}
Reply


Messages In This Thread
Just checking enter command - by HrvojeCro - 12.11.2010, 08:55
Re: Just checking enter command - by TheXIII - 12.11.2010, 08:57
Re: Just checking enter command - by Rafa - 12.11.2010, 09:00
Re: Just checking enter command - by HrvojeCro - 12.11.2010, 09:03
Re: Just checking enter command - by TheXIII - 12.11.2010, 09:04
Re: Just checking enter command - by HrvojeCro - 12.11.2010, 09:06
Re: Just checking enter command - by Rafa - 12.11.2010, 09:10
Re: Just checking enter command - by TheXIII - 12.11.2010, 09:12
Re: Just checking enter command - by Rafa - 12.11.2010, 09:19
Re: Just checking enter command - by TheXIII - 12.11.2010, 09:28

Forum Jump:


Users browsing this thread: 1 Guest(s)