Admin cmd
#9

Quote:
Originally Posted by oliverrud
Посмотреть сообщение
pawn Код:
PublicOnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/opengates", cmdtext, true, 10) == 0)
    {
            if(PlayerAccount[playerid][Admin] >= 2)
            {
        MoveObject(gate1,-291.833282, 1507.330078, 76.069191,2.0);
        MoveObject(gate2,-312.522491, 1506.881470, 76.070045,2.0);
        return 1;
            }
    }
   
    if (strcmp("/closegates", cmdtext, true, 10) == 0)
    {
            if(PlayerAccount[playerid][Admin] >= 2)
            {
        MoveObject(gate1,-298.333282, 1507.330078, 76.069191,2.0);
        MoveObject(gate2,-306.222504, 1506.931519, 76.070045,2.0);
        return 1;
            }
    }
    return 0;
}
Replace the PlayerAccount[playerid][Admin] with your account system
do that just change what he said but place the command to move object in what ever script you have just remember to #include what you need and #define to
Reply


Messages In This Thread
Admin cmd - by RatHack - 09.07.2010, 20:17
Re: Admin cmd - by oliverrud - 09.07.2010, 20:40
Re: Admin cmd - by RatHack - 09.07.2010, 20:43
Re: Admin cmd - by oliverrud - 09.07.2010, 20:45
Re: Admin cmd - by Mauzen - 09.07.2010, 20:46
Re: Admin cmd - by RatHack - 09.07.2010, 20:48
Re: Admin cmd - by RatHack - 09.07.2010, 20:50
Re: Admin cmd - by oliverrud - 09.07.2010, 20:54
Re: Admin cmd - by willsuckformoney - 09.07.2010, 20:58
Re: Admin cmd - by RatHack - 10.07.2010, 09:10

Forum Jump:


Users browsing this thread: 1 Guest(s)