TextDraw image rotate(tv corn)?
#1

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?
Reply
#2

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]);
}
Reply
#3

Really thanks you! It's so easy, but i forgot i can do it with this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)