19.05.2013, 15:23
ja vi esse topico https://sampforum.blast.hk/showthread.php?tid=331395
mais qro colocar mais de uma imagem
mais qro colocar mais de uma imagem
TextDrawHideForPlayer(playerid, IMGEntrada[playerid]);//para a textdraw sumir na hora de escolher a skin
TextDrawIMG(playerid);//aparesser na hora que conectar
stock TextDrawIMG(playerid)
{
new IMG = random(4);
if(IMG == 0)
{
IMGEntrada[playerid] = TextDrawCreate(-1.4118, -1.1667, "loadsc2:loadsc2");
TextDrawLetterSize(IMGEntrada[playerid], 0.4499, 1.6);
TextDrawTextSize(IMGEntrada[playerid], 647.0591, 449.1667);
TextDrawAlignment(IMGEntrada[playerid], 1);
TextDrawColor(IMGEntrada[playerid], 0xFFFFFFFF);
TextDrawUseBox(IMGEntrada[playerid], true);
TextDrawBoxColor(IMGEntrada[playerid], 0x000000FF);
TextDrawSetShadow(IMGEntrada[playerid], 0);
TextDrawSetOutline(IMGEntrada[playerid], 1);
TextDrawBackgroundColor(IMGEntrada[playerid], 0x00000033);
TextDrawFont(IMGEntrada[playerid], 4);
TextDrawSetProportional(IMGEntrada[playerid], true);
}
else if(IMG == 1)
{
IMGEntrada[playerid] = TextDrawCreate(-1.4118, -1.1667, "loadsc3:loadsc3");
TextDrawLetterSize(IMGEntrada[playerid], 0.4499, 1.6);
TextDrawTextSize(IMGEntrada[playerid], 647.0591, 449.1667);
TextDrawAlignment(IMGEntrada[playerid], 1);
TextDrawColor(IMGEntrada[playerid], 0xFFFFFFFF);
TextDrawUseBox(IMGEntrada[playerid], true);
TextDrawBoxColor(IMGEntrada[playerid], 0x000000FF);
TextDrawSetShadow(IMGEntrada[playerid], 0);
TextDrawSetOutline(IMGEntrada[playerid], 1);
TextDrawBackgroundColor(IMGEntrada[playerid], 0x00000033);
TextDrawFont(IMGEntrada[playerid], 4);
TextDrawSetProportional(IMGEntrada[playerid], true);
}
else if(IMG == 2)
{
IMGEntrada[playerid] = TextDrawCreate(-1.4118, -1.1667, "loadsc4:loadsc4");
TextDrawLetterSize(IMGEntrada[playerid], 0.4499, 1.6);
TextDrawTextSize(IMGEntrada[playerid], 647.0591, 449.1667);
TextDrawAlignment(IMGEntrada[playerid], 1);
TextDrawColor(IMGEntrada[playerid], 0xFFFFFFFF);
TextDrawUseBox(IMGEntrada[playerid], true);
TextDrawBoxColor(IMGEntrada[playerid], 0x000000FF);
TextDrawSetShadow(IMGEntrada[playerid], 0);
TextDrawSetOutline(IMGEntrada[playerid], 1);
TextDrawBackgroundColor(IMGEntrada[playerid], 0x00000033);
TextDrawFont(IMGEntrada[playerid], 4);
TextDrawSetProportional(IMGEntrada[playerid], true);
}
else if(IMG == 3)
{
IMGEntrada[playerid] = TextDrawCreate(-1.4118, -1.1667, "loadsc7:loadsc7");
TextDrawLetterSize(IMGEntrada[playerid], 0.4499, 1.6);
TextDrawTextSize(IMGEntrada[playerid], 647.0591, 449.1667);
TextDrawAlignment(IMGEntrada[playerid], 1);
TextDrawColor(IMGEntrada[playerid], 0xFFFFFFFF);
TextDrawUseBox(IMGEntrada[playerid], true);
TextDrawBoxColor(IMGEntrada[playerid], 0x000000FF);
TextDrawSetShadow(IMGEntrada[playerid], 0);
TextDrawSetOutline(IMGEntrada[playerid], 1);
TextDrawBackgroundColor(IMGEntrada[playerid], 0x00000033);
TextDrawFont(IMGEntrada[playerid], 4);
TextDrawSetProportional(IMGEntrada[playerid], true);
}
TextDrawShowForPlayer(playerid, IMGEntrada[playerid]);
return 1;
}