Creating a Skin Selection
#10

Yes, it is possible.


pawn Код:
new bool:InClassSelection[MAX_PLAYERS] = false; //outside of everything


CMD:changeclass(playerid, params[])
{
    if(!InClassSelection[playerid])
    {
        InClassSelection[playerid] = true;
        SetPlayerHealth(playerid, 0);
    }
    else return SendClientMessage(playerid, 0xCC0000AA, "You're already in the class selection!");
    return 1;
}

public OnPlayerSpawn(playerid)
{
    if(InClassSelection[playerid])
    {
        //set their camera pos etc.
    }
    else
    {
        //everything else on OnPlayerSpawn
    }
}
I couldn't get my class selection working because I was having problems with getting the left and right arrow keys...Don't know why they were messing up, maybe you'll have better luck.
Reply


Messages In This Thread
Creating a Skin Selection - by Reklez - 23.03.2012, 10:57
Re: Creating a Skin Selection - by Tom1412 - 23.03.2012, 11:08
Re: Creating a Skin Selection - by Reklez - 23.03.2012, 11:14
Re: Creating a Skin Selection - by Tom1412 - 23.03.2012, 11:19
Re: Creating a Skin Selection - by emokidx - 23.03.2012, 11:20
Re: Creating a Skin Selection - by Reklez - 23.03.2012, 11:23
Re: Creating a Skin Selection - by Reklez - 24.03.2012, 02:30
Re: Creating a Skin Selection - by Reklez - 24.03.2012, 04:16
Re: Creating a Skin Selection - by Jonny5 - 24.03.2012, 04:27
Re: Creating a Skin Selection - by [ABK]Antonio - 24.03.2012, 04:28

Forum Jump:


Users browsing this thread: 1 Guest(s)