/gate command help!
#3

Example by using the strcmp:

pawn Код:
new
        bool:gObjVar; // Global boolean variable.
pawn Код:
if(!strcmp(cmdtext, "/gate", true))
{
    if(gObjVar == false)
    {
        /* Open. */
        MoveObject(...);
        gObjVar = true;
    }
    else // It's true.
    {
        /* Close. */
        MoveObject(...);
        gObjVar = false;
    }
    return true;
}
Reply


Messages In This Thread
/gate command help! - by phatlaced - 15.07.2010, 09:25
Re: /gate command help! - by (SF)Noobanatior - 15.07.2010, 09:36
Re: /gate command help! - by Correlli - 15.07.2010, 09:37
Re: /gate command help! - by willsuckformoney - 15.07.2010, 10:12
Re: /gate command help! - by (SF)Noobanatior - 15.07.2010, 10:14
Re: /gate command help! - by willsuckformoney - 15.07.2010, 10:15
Re: /gate command help! - by phatlaced - 15.07.2010, 10:58

Forum Jump:


Users browsing this thread: 2 Guest(s)