Open/Close gate in one CMD
#4

pawn Код:
WHGATE = CreateDynamicObject(2990, 1141.0118408203, -1206.8706054688, 21.935035705566, 0, 0, 91.669952392578);
    new bool:opened;
    if(strcmp(cmd, "/whgate", true) == 0)
    {
    if(opened == false)
    {
        MoveDynamicObject(WHGATE,1141.0118408203, -1206.8706054688, 12.685035705566,1.2); //
        SendClientMessage(playerid, COLOR_RED, "Gates are opening, Please Wait.");
        opened = true;
    }
    if(opened == true)
    {
        MoveDynamicObject(WHGATE,1141.0118408203, -1206.8706054688, 21.935035705566,1.2); //
        SendClientMessage(playerid, COLOR_RED, "The Gates are closing, Please Wait."); //
        opened = false;
    }
    return 1;
    }
Reply


Messages In This Thread
Open/Close gate in one CMD - by Black Axe - 21.01.2012, 17:17
Re: Open/Close gate in one CMD - by [ABK]Antonio - 21.01.2012, 17:20
Re: Open/Close gate in one CMD - by Black Axe - 21.01.2012, 17:31
Re: Open/Close gate in one CMD - by xGoldenx - 21.01.2012, 18:00
Re: Open/Close gate in one CMD - by Black Axe - 21.01.2012, 18:56

Forum Jump:


Users browsing this thread: 1 Guest(s)