Gate password help
#5

My example:
Top:
pawn Код:
#define GATE_PASSWORD "mypassword"
Command:
pawn Код:
CMD:gate(playerid, params[])
{
    if(params[0] == '\1' && params[1] == '\0')
        SendClientMessage(playerid, 0xFF0000FF, "Write: /gate [password].");
    else if(strcmp(params, GATE_PASSWORD, false))
        SendClientMessage(playerid, 0xFF0000FF, "Password is incorrect.");
    else
    {
        //write here MoveObject
    }
    return 1;
}
Reply


Messages In This Thread
Gate password help - by yarrum3 - 11.11.2010, 02:32
Respuesta: Gate password help - by TheChaoz - 11.11.2010, 02:35
Re: Respuesta: Gate password help - by yarrum3 - 11.11.2010, 02:40
Respuesta: Gate password help - by TheChaoz - 11.11.2010, 02:51
Re: Gate password help - by rs.pect - 11.11.2010, 10:04
Re: Gate password help - by Buzzbomb - 12.11.2010, 06:53

Forum Jump:


Users browsing this thread: 1 Guest(s)