Help: MAX_PLAYERS
#9

pawn Код:
new Text:EXP;
new Text:LVL[MAX_PLAYERS];
new Text:NUMBER[MAX_PLAYERS];

forward TextdrawUpdater();

public OnGameModeInit()
{
    SetTimer("TextdrawUpdater", 5000, 1);

    for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
    {
        LVL[playerid] = TextDrawCreate(592.000000, 440.000000, "LV:0");
        TextDrawBackgroundColor(LVL[playerid], 255);
        TextDrawFont(LVL[playerid], 1);
        TextDrawLetterSize(LVL[playerid], 0.209999, 0.699899);
        TextDrawColor(LVL[playerid], -1);
        TextDrawSetOutline(LVL[playerid], 0);
        TextDrawSetProportional(LVL[playerid], 1);
        TextDrawSetShadow(LVL[playerid], 1);

        NUMBER[playerid] = TextDrawCreate(566.000000, 440.000000, "0/15");
        TextDrawBackgroundColor(NUMBER[playerid], 255);
        TextDrawFont(NUMBER[playerid], 1);
        TextDrawLetterSize(NUMBER[playerid], 0.210000, 0.699999);
        TextDrawColor(NUMBER[playerid], -1);
        TextDrawSetOutline(NUMBER[playerid], 0);
        TextDrawSetProportional(NUMBER[playerid], 1);
        TextDrawSetShadow(NUMBER[playerid], 1);
    }
}

public OnPlayerConnect(playerid)
{
    TextDrawShowForPlayer(playerid, EXP);
    TextDrawShowForPlayer(playerid, LVL[playerid]);
    TextDrawShowForPlayer(playerid, NUMBER[playerid]);
    return 1;
}

public TextdrawUpdater()
{
    for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
    {
        TextDrawSetString(LVL[playerid], "blabla");
        TextDrawSetString(NUMBER[playerid], "blabla2");
    }
    return 1;
}
Reply


Messages In This Thread
Help: MAX_PLAYERS - by XoX - 13.02.2011, 12:02
Re: Help: MAX_PLAYERS - by Serbish - 13.02.2011, 12:06
Re: Help: MAX_PLAYERS - by SkizzoTrick - 13.02.2011, 12:09
Re: Help: MAX_PLAYERS - by XoX - 13.02.2011, 12:11
Re: Help: MAX_PLAYERS - by Mean - 13.02.2011, 12:11
Re: Help: MAX_PLAYERS - by Mean - 13.02.2011, 12:12
Re: Help: MAX_PLAYERS - by SkizzoTrick - 13.02.2011, 12:13
Re: Help: MAX_PLAYERS - by XoX - 13.02.2011, 12:14
Re: Help: MAX_PLAYERS - by Serbish - 14.02.2011, 01:34
Re: Help: MAX_PLAYERS - by cessil - 14.02.2011, 02:30

Forum Jump:


Users browsing this thread: 1 Guest(s)