kowalev
Новичок
Привет всем увидел урок и который не рабочий вот рабочий вариант textdraw
В начало ко всем new
в OnPlayerConnect
в OnPlayerDisconnect
в OtherTimer
Вот и все
Автор Alex_Corleone
В начало ко всем new
PHP:
new Text:InfoTextDraw[MAX_PLAYERS];
PHP:
InfoTextDraw[playerid] = TextDrawCreate(10.000000,430.000000,"_");
TextDrawAlignment(InfoTextDraw[playerid],0);
TextDrawBackgroundColor(InfoTextDraw[playerid],0x000000ff);
TextDrawFont(InfoTextDraw[playerid],1);
TextDrawLetterSize(InfoTextDraw[playerid],0.500000,1.5);
TextDrawColor(InfoTextDraw[playerid],0xffffffff);
TextDrawSetOutline(InfoTextDraw[playerid],1);
TextDrawSetProportional(InfoTextDraw[playerid],1);
TextDrawSetShadow(InfoTextDraw[playerid],1);
TextDrawShowForPlayer(playerid, InfoTextDraw[playerid]);
PHP:
TextDrawDestroy(InfoTextDraw[playerid]);
PHP:
new exp = PlayerInfo[i][pExp];
new nxtlevel = PlayerInfo[i][pLevel]+1;
new expamount = nxtlevel*levelexp;
format(string,sizeof(string),"LvL:~y~%d ~w~Exp:~y~%d~w~/~y~%d",PlayerInfo[i][pLevel],exp,expamount);
TextDrawSetString(InfoTextDraw[i], string);
Автор Alex_Corleone
Последнее редактирование:
