Need help
#2

Well, if you have written the owners name into a variable, you can do it this way (this would be for 'house 1'

pawn Код:
if(!strcmp("/opengate", cmdtext, true))
    {
        if(!strcmp(Ownername[House1],Playername,true))
        {
            SetTimer("OnGateMoveBack",4000,false); // setting a timer to move the gate back
            MoveObject(blablabla); // Put your info here to move the gate to
            MoveGateBack[playerid] = 1; // Do not forget to define this.
        }
        return 1;
    }
pawn Код:
forward OnGateMoveBack();
public OnGateMoveBack()
{
    if(MoveGateBack[playerid] == 1)
    {
        MoveObject(blabla); // move the object back
        MoveGateBack[playerid] = 0;
    }
    return 1;
}
Please note that I have not done something good now by writing almost the whole code. try making it yourself next time and learn these function, and the 'Related Functions'. They're really useful.
Reply


Messages In This Thread
Need help - by Franklyn - 08.11.2010, 13:18
Re: Need help - by Jochemd - 08.11.2010, 14:01
Re: Need help - by Franklyn - 08.11.2010, 14:18
Re: Need help - by Jochemd - 08.11.2010, 18:54

Forum Jump:


Users browsing this thread: 1 Guest(s)