2 commands at one?!?
#3

pawn Код:
new bool:GateOpen;

if ( !strcmp("/vдrav", cmdtext, true ))
{
    GetPlayerName(playerid,pName,64);
    if( GateOpen )
    {
        if(!strcmp(pName,"Steven_Hayen2",true))
        {
            MoveObject(gate, 321.35000000,-1188.19000000,75.35000000,2.00000000);
            GateOpen = false;
        }
    }
    else
    {
        if(!strcmp(pName,"Steven_Hayen2",true))
        {
            MoveObject(gate, 321.35000000,-1188.19000000,70.52000000,1.00000000);
            GateOpen = true;
        }
    }
    return 1;
}
Or use the code posted by ronnie3148 for auto close.
Reply


Messages In This Thread
2 commands at one?!? - by pliptm - 31.03.2011, 09:26
Re: 2 commands at one?!? - by ronnie3148 - 31.03.2011, 09:34
Re: 2 commands at one?!? - by iggy1 - 31.03.2011, 09:36
Re: 2 commands at one?!? - by pliptm - 31.03.2011, 10:06
Re: 2 commands at one?!? - by pliptm - 31.03.2011, 11:13
Re: 2 commands at one?!? - by ronnie3148 - 01.04.2011, 06:31

Forum Jump:


Users browsing this thread: 1 Guest(s)