here is just one textdraw example:
pawn Код:
#undef MAX_PLAYERS
#define MAX_PLAYERS 100
new Text:Levelce[MAX_PLAYERS];
//Under OnPlayerConnect
Levelce[playerid] = TextDrawCreate(546.000000, 106.000000, "2");
TextDrawBackgroundColor(Levelce[playerid], 255);
TextDrawFont(Levelce[playerid], 1);
TextDrawLetterSize(Levelce[playerid], 0.500000, 1.000000);
TextDrawColor(Levelce[playerid], -203249153);
TextDrawSetOutline(Levelce[playerid], 0);
TextDrawSetProportional(Levelce[playerid], 1);
TextDrawSetShadow(Levelce[playerid], 1);
//ExpUpdate is a timer (It is under OnPlayerConnect ( SetTimerEx("ExpUpdate", 100, true, "d", playerid); )
public ExpUpdate(playerid)
{
if(CheckPausing(playerid) == 1 || PlayerInfo[playerid][pTut] == 0)
{
return 1;
}
else if(CheckPausing(playerid) == 0 && PlayerInfo[playerid][pTut] == 1)
{
pokazuvalevel[playerid] += 1;
if(pokazuvalevel[playerid] == 50)
{
TextDrawShowForPlayer(playerid, Levelce[playerid]);
}
}
}
Is there any problem ? Please help !