Commands.
#3

If I`m not wrong, this is what you mean:
pawn Код:
command(pdgate, playerid, params[])
{
    #pragma unused params

    if(IsPlayerInRangeOfPoint(playerid, 4.0, 1214.19,300.26,19.98))
    {
        SetObjectRot(gate1, 1.68,26.76,71.03);
        SetObjectPos(gate1, 1214.19,300.26,19.901);
        SetTimer("close2", 5000, 0);
        SendClientMessage(playerid, RED, "Paramedic gate, is closing in 5 seconds.");
        return 1;
    }
    if(IsPlayerInRangeOfPoint(playerid, 4.0, newx, newy, newz)) // newx, newy, newz - are the other gate coords.
    {
        //bla bla
        return 1;
    }
    return 1;
}
Oh and by the way, don`t use 'return 0;' in commands... use return 1; instead.
Reply


Messages In This Thread
Commands. - by iGetty - 10.03.2011, 23:33
Respuesta: Commands. - by Alex_Obando - 11.03.2011, 00:11
Re: Commands. - by antonio112 - 11.03.2011, 01:11

Forum Jump:


Users browsing this thread: 4 Guest(s)