gate with password
#9

Command:
pawn Код:
if(!strcmp(cmdtext, "/open", true,5))
{
    if(!strcmp(cmdtext[5], "password"))
    {
        //Move gate
        SetTimerEx("CloseMyGate", 10000, 0); // This will cale the 'CloseMyGate' after 10 seconds.
    }
    else return SendClientMessage(playerid, RED, "Usage: /open [PASSWORD]");
}
And the timer that gets called to close the gate:
pawn Код:
forward CloseMyGate();
public CloseMyGate()
{
    //Move gate back ...
    return 1;
}
Have fun.
Reply


Messages In This Thread
gate with password - by LegendNissanGTR - 10.12.2010, 05:04
Re: gate with password - by kiss - 10.12.2010, 05:09
Re: gate with password - by LegendNissanGTR - 10.12.2010, 10:34
Re: gate with password - by doreto - 10.12.2010, 11:02
Re: gate with password - by LegendNissanGTR - 10.12.2010, 13:48
Re: gate with password - by Jeffry - 10.12.2010, 13:54
Re: gate with password - by LegendNissanGTR - 11.12.2010, 14:02
Respuesta: gate with password - by RatHack - 11.12.2010, 14:08
Re: gate with password - by Jeffry - 11.12.2010, 14:26
Re: gate with password - by LegendNissanGTR - 11.12.2010, 14:32

Forum Jump:


Users browsing this thread: 1 Guest(s)