TextDraw image rotate(tv corn)? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: TextDraw image rotate(tv corn)? (
/showthread.php?tid=464146)
TextDraw image rotate(tv corn)? -
Army - 15.09.2013
Hello, i find textdraw image called tvcorn(you can see it in video mini-games like Go Go Space Monkey etc. in SP, it's fine, but i cant rotate it. I already seen full TV by this textdraws in SA-MP, so its possible to rotate or there is another textdraw image that looks like tv textdraw?
Re: TextDraw image rotate(tv corn)? -
Grimrandomer - 15.09.2013
To rotate, you set a negative width/height:
Example:
To create:
pawn Код:
new Text:_tvBorder[4];
new Float:_tvBorderData[4][4] = {
{-0.500, -0.500, 314.500, 239.500},
{640.000, -0.500, -326.000, 235.000},
{-0.500, 448.000, 329.500, -236.000},
{640.000, 448.000, -314.000, -228.500}
};
for (new bp=0; bp<4; bp++) {
_tvBorder[bp] = TextDrawCreate(_tvBorderData[bp][0], _tvBorderData[bp][1], "ld_grav:tvcorn");
TextDrawFont(_tvBorder[bp], 4);
TextDrawColor(_tvBorder[bp], -1);
TextDrawTextSize(_tvBorder[bp], _tvBorderData[bp][2], _tvBorderData[bp][3]);
}
To show:
pawn Код:
for (new bp=0; bp<4; bp++) {
TextDrawShowForPlayer(playerid,_tvBorder[bp]);
}
To Hide
pawn Код:
for (new bp=0; bp<4; bp++) {
TextDrawHideForPlayer(playerid,_tvBorder[bp]);
}
Re: TextDraw image rotate(tv corn)? -
Army - 15.09.2013
Really thanks you! It's so easy, but i forgot i can do it with this.