Is there a line to check if the player has typed the command before
#3

pawn Код:
new HasStarted[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    HasStarted[playerid] = 0;
    return 1;
}

CMD:start(playerid, params[])
{
    HasStarted[playerid] = 1;
    SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: You've started the delivery job.");
    return 1;
}

CMD:delivergoods(playerid, params[])
{
    if(HasStarted[playerid] == 1)
    {
        //He has started
    }
    else
    {
        //He hasn't started yet
    }
    return 1;
}
Edit: Oops too late.
Reply


Messages In This Thread
Is there a line to check if the player has typed the command before - by Lynchos - 29.08.2013, 11:44
Re: Is there a line to check if the player has typed the command before - by lewismichaelbbc - 29.08.2013, 11:47
Re: Is there a line to check if the player has typed the command before - by Finn707 - 29.08.2013, 11:52
Re: Is there a line to check if the player has typed the command before - by Konstantinos - 29.08.2013, 12:07

Forum Jump:


Users browsing this thread: 1 Guest(s)