auto close
#4

pawn Код:
new gate; //On top of script..

//Inside OnGameModeInit or OnFilterScriptInit:
gate = CreateObject(980, 2287.30004883, 605.29998779, 12.50,0.0, 0.0, 359.98901367); //object(airportgate) (1)

public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/Open", cmdtext, true, 5) == 0)
    {
        MoveObject(gate, 2287.30004883, 605.29998779, 6.50, 7);
        return 1;
    }
    if (strcmp("/ohouse", cmdtext, true, 7) == 0)
    {
        SetPlayerPos(playerid,837.1106, -1875.3643, 13.4764);
        return 1;
    }
    if (strcmp("/close", cmdtext, true, 6) == 0)
    {
        MoveObject(gate,2287.30004883, 605.29998779, 12.50,7);
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
auto close - by hydronic - 17.09.2011, 12:57
Re: auto close - by MP2 - 17.09.2011, 13:04
Re: auto close - by Sasino97 - 17.09.2011, 13:04
Re: auto close - by iPLEOMAX - 17.09.2011, 13:05
Re: auto close - by hydronic - 17.09.2011, 13:17
Re: auto close - by Tee - 17.09.2011, 14:36
Re: auto close - by hydronic - 17.09.2011, 15:51
Re: auto close - by Pasa - 17.09.2011, 16:25
Re: auto close - by Mean - 17.09.2011, 16:38
Re: auto close - by hydronic - 17.09.2011, 17:02

Forum Jump:


Users browsing this thread: 2 Guest(s)