PlayerToPoint...
#6

pawn Код:
dcmd_opengate(playerid, params[])
{
    #pragma unused params
    if (IsPlayerInRangeOfPoint(playerid, 5.0,1593.70690918, -1638.02673340,12.91628456))
    {
        MoveObject(LSPD, 1593.70690918, -1638.02673340,12.91628456, 2.00);
        SetTimer("close", 7000, 0);//gate will be  closed for 7 seconds
        SendClientMessage(playerid, COLOR_WHITE ,"You are opening a Gate it will close in 7 seconds");
        return 1;
    }
    else if(IsPlayerInRangeOfPoint(playerid, 5.0,1415.57385254, -1652.72680664, 12.63281250))
    {
        MoveObject(LF, 1415.57385254, -1652.72680664, 12.63281250, 2.00);
        SetTimer("closeLF", 7000, 0);
        SendClientMessage(playerid, COLOR_WHITE ,"You are opening a Gate it will close in 7 seconds");
        return 1;
    }
    return 1;
}
Think logical what you write
Reply


Messages In This Thread
PlayerToPoint... - by Luis- - 13.08.2010, 19:41
Re: PlayerToPoint... - by Claude - 13.08.2010, 19:52
Re: PlayerToPoint... - by Luis- - 13.08.2010, 20:00
Re: PlayerToPoint... - by FoxtrotZulu - 13.08.2010, 20:27
Re: PlayerToPoint... - by Luis- - 13.08.2010, 20:36
Re: PlayerToPoint... - by ikey07 - 13.08.2010, 20:37
Re: PlayerToPoint... - by Luis- - 13.08.2010, 20:51

Forum Jump:


Users browsing this thread: 1 Guest(s)