SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 27/01/2014, 07:43 PM   #1
MartiQ
Little Clucker
 
Join Date: Nov 2011
Posts: 27
Reputation: 0
Default Dynamic Textdraws.

Hello everyone.

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);
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?
MartiQ is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] :: iAchieve :: Dynamic Achievement System - (Notify-on-achieve) (Stylish Textdraws) (uses Y_INI for saving/loading) iPLEOMAX Includes 66 05/06/2017 01:30 PM
Dynamic textdraws Face9000 Scripting Help 4 17/01/2014 01:00 PM
Global TextDraws on top of Player TextDraws [resolved] Joe Staff Scripting Help 0 17/05/2013 05:35 AM
[BUG] Selecting textdraws lighting up multiple textdraws Hiddos Scripting Help 3 24/03/2012 02:44 PM


All times are GMT. The time now is 05:03 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.