Variable Help
#5

You could do this:
pawn Код:
new HasStartedC[MAX_PLAYERS];//global variable

CMD:startcareer(playerid, params[])
{
    if(HasStartedC[playerid] == 0)//Checks if player has not started a career yet.
    {
        //do some stuff
        HasStartedC[playerid] = 1;//Set the variable for the playerid to 1
    }
    else//If player already started a career
    {
        SendClientMessage(playerid, -1, "Tutorial already used or something");
    }
    return 1;
}
Reply


Messages In This Thread
Variable Help - by McBan - 29.07.2014, 21:28
Re: Variable Help - by youssefehab500 - 29.07.2014, 21:32
Re: Variable Help - by McBan - 29.07.2014, 21:35
Re: Variable Help - by youssefehab500 - 29.07.2014, 21:40
Re: Variable Help - by ThePhenix - 29.07.2014, 21:41
Re: Variable Help - by SickAttack - 29.07.2014, 21:41
Re: Variable Help - by Don_Cage - 29.07.2014, 21:58
Re: Variable Help - by DaniceMcHarley - 29.07.2014, 22:01
Re: Variable Help - by sammp - 29.07.2014, 22:24

Forum Jump:


Users browsing this thread: 2 Guest(s)