dcmd_enter help
#2

pawn Код:
dcmd_enter(playerid, params[])
{
    #pragma unused params
    for(new f=0; f<MAX_FACTIONS; f++)
    {
        if(PlayerToPoint(1.0,playerid,FactionInfo[f][fEnterX],FactionInfo[f][fEnterY],FactionInfo[f][fEnterZ]))
        {
            if(FactionInfo[f][fLocked] == 1 && PlayerInfo[playerid][pFaction] != f)
            {
                GameTextForPlayer(playerid,"~r~Locked",3000,1);
                return 1;
            }
            SetPlayerPos(playerid,FactionInfo[f][fInteriorX],FactionInfo[f][fInteriorY],FactionInfo[f][fInteriorZ]);
            SetPlayerInterior(playerid,FactionInfo[f][fInteriorID]);
            SetPlayerVirtualWorld(playerid,FactionInfo[f][fVirtual]);
            return 1;
        }
    }
    SendErrorMessage(playerid, ".: Info: Not at an entrance :.");
    return 1;
}
Reply


Messages In This Thread
dcmd_enter help - by introzen - 24.06.2010, 12:59
Re: dcmd_enter help - by MadeMan - 24.06.2010, 13:37
Re: dcmd_enter help - by introzen - 24.06.2010, 13:45

Forum Jump:


Users browsing this thread: 1 Guest(s)