27.01.2014, 19:43
Hello everyone.
I just want to ask you, how to make dynamic textdraw with this textdraw:
So what I want... I want to make those textdraws to show up when some guy is at certain point. For example: when I go to house icon, it shows up this textdraw, but in newspaper place it shows House %d (ID) than it will show owner, and rent price. How can I make it dynamic?
I just want to ask you, how to make dynamic textdraw with this textdraw:
Code:
InfoTD1[playerid] = TextDrawCreate(8.000000, 175.000000,"~w~Newspaper"); InfoTD2[playerid] = TextDrawCreate(22.000000, 206.000000,"~w~1."); InfoTD3[playerid] = TextDrawCreate(22.000000, 215.000000,"~w~2."); InfoTD4[playerid] = TextDrawCreate(22.000000, 224.000000,"~w~3."); TextDrawAlignment(InfoTD1[playerid],0); TextDrawAlignment(InfoTD2[playerid],0); TextDrawAlignment(InfoTD3[playerid],0); TextDrawAlignment(InfoTD4[playerid],0); TextDrawBackgroundColor(InfoTD1[playerid],255); TextDrawBackgroundColor(InfoTD2[playerid],255); TextDrawBackgroundColor(InfoTD3[playerid],255); TextDrawBackgroundColor(InfoTD4[playerid],255); TextDrawFont(InfoTD1[playerid],0); TextDrawLetterSize(InfoTD1[playerid],0.819998, 2.599998); TextDrawFont(InfoTD2[playerid],2); TextDrawLetterSize(InfoTD2[playerid],0.180000, 1.000000); TextDrawFont(InfoTD3[playerid],2); TextDrawLetterSize(InfoTD3[playerid],0.180000, 1.000000); TextDrawFont(InfoTD4[playerid],2); TextDrawLetterSize(InfoTD4[playerid],0.180000, 1.000000); TextDrawColor(InfoTD1[playerid],-1); TextDrawColor(InfoTD2[playerid],-1); TextDrawColor(InfoTD3[playerid],-1); TextDrawColor(InfoTD4[playerid],-1); TextDrawSetOutline(InfoTD1[playerid],1); TextDrawSetOutline(InfoTD2[playerid],0); TextDrawSetOutline(InfoTD3[playerid],0); TextDrawSetOutline(InfoTD4[playerid],0); TextDrawSetProportional(InfoTD1[playerid],1); TextDrawSetProportional(InfoTD2[playerid],1); TextDrawSetProportional(InfoTD3[playerid],1); TextDrawSetProportional(InfoTD4[playerid],1); TextDrawSetShadow(InfoTD1[playerid],0); TextDrawSetShadow(InfoTD2[playerid],1); TextDrawSetShadow(InfoTD3[playerid],1); TextDrawSetShadow(InfoTD4[playerid],1);