#3

pawn Код:
if(!strcmp(cmdtext, "/gate", true))//open
    {
         new opengate = MoveObject(pdgate, 1588.06298828,-1638.16271973,7.16996956, 3);
         if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 3       || PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2   || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pMember] == 5)
        {
            if(IsPlayerInRangeOfPoint(playerid, 15, 1588.06298828,-1638.16271973,7.16996956))
            MoveObject(pdgate, 1588.06298828,-1638.16271973,7.16996956, 3);
        }
            else if(GetObjectPos(pdgate, opengate))
            {
                        MoveObject(pdgate, X, Y, Z, 3);
            }
        return 1;
    }
Reply


Messages In This Thread
gate - by TheKingOfSamp - 14.01.2011, 13:12
Re: gate - by Mean - 14.01.2011, 13:29
Re: gate - by fangoth1 - 14.01.2011, 13:33

Forum Jump:


Users browsing this thread: 1 Guest(s)