[AJUDA] Codigo
#9

pawn Код:
// Topo do GameMode; abaixo das includes
new Portao[2];

// OnGameModeInit
Portao[0] = CreateObject(988, -2033.45776367, -102.98937988, 38.94689178, 0.00000000, 0.00000000, 359.96704102);
Portao[1] = CreateObject(988, -2022.41369629, -119.42974854, 38.94689178, 0.00000000, 0.00000000, 359.96704102);

    // OnPlayerCommandText
    if(!strcmp(cmdtext, "/abrirporta", true))
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "Vocк abriu o portгo!");
        MoveObject(Portao[0], -2033.45776367, -102.98937988,32.94689178, 4.0);
        MoveObject(Portao[1], -2022.41369629,-119.42974854,38.94689178, 4.0);
        return 1;
    }
    if(!strcmp(cmdtext, "/fecharporta", true))
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "Vocк fechou o portгo!");
        MoveObject(Portao[0], -2033.45776367, -102.98937988, 38.94689178, 4.0);
        MoveObject(Portao[1], -2022.41369629, -119.42974854, 38.94689178, 4.0);
        return 1;
    }
Quase igual, mas nгo й. xD
Reply


Messages In This Thread
[AJUDA] Codigo - by badekl - 01.08.2011, 11:09
Re: [AJUDA] Codigo - by [NWD]Jim._.Carrey - 01.08.2011, 14:17
Re: [AJUDA] Codigo - by badekl - 01.08.2011, 15:20
Re: [AJUDA] Codigo - by Josma_cmd - 01.08.2011, 15:32
Re: [AJUDA] Codigo - by ASDF - 01.08.2011, 15:36
Re: [AJUDA] Codigo - by badekl - 01.08.2011, 18:58
Re: [AJUDA] Codigo - by ASDF - 01.08.2011, 19:18
Re: [AJUDA] Codigo - by JonathanFeitosa - 01.08.2011, 19:48
Re: [AJUDA] Codigo - by Red Smoke - 01.08.2011, 20:01
Re: [AJUDA] Codigo - by badekl - 01.08.2011, 20:34

Forum Jump:


Users browsing this thread: 1 Guest(s)