SA-MP Forums Archive
[Pedido] Imagem ao Logar - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] Imagem ao Logar (/showthread.php?tid=438292)



Imagem ao Logar - VSxD - 19.05.2013

ja vi esse topico https://sampforum.blast.hk/showthread.php?tid=331395
mais qro colocar mais de uma imagem


Re: Imagem ao Logar - robertsz - 19.05.2013

como assim tipo randomico


Re: Imagem ao Logar - VSxD - 19.05.2013

Ezato


Re: Imagem ao Logar - robertsz - 19.05.2013

Em OnPlayerRequestClass
PHP код:
TextDrawHideForPlayer(playeridIMGEntrada[playerid]);//para a textdraw sumir na hora de escolher a skin 
Em OnPlayerConnect

PHP код:
TextDrawIMG(playerid);//aparesser na hora que conectar 
No final Do Gm

PHP код:
stock TextDrawIMG(playerid)
{
    new 
IMG random(4);
    if(
IMG == 0)
    {
        
IMGEntrada[playerid] = TextDrawCreate(-1.4118, -1.1667"loadsc2:loadsc2");
        
TextDrawLetterSize(IMGEntrada[playerid], 0.44991.6);
        
TextDrawTextSize(IMGEntrada[playerid], 647.0591449.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.44991.6);
        
TextDrawTextSize(IMGEntrada[playerid], 647.0591449.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.44991.6);
        
TextDrawTextSize(IMGEntrada[playerid], 647.0591449.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.44991.6);
        
TextDrawTextSize(IMGEntrada[playerid], 647.0591449.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(playeridIMGEntrada[playerid]);
    return 
1;




Re: Imagem ao Logar - robertsz - 19.05.2013

tinha esquecido
new Text:IMGEntrada[MAX_PLAYERS];
no comeзo do gm


Re: Imagem ao Logar - VSxD - 19.05.2013

nгo estб aparecendo a imagem ;(


Re: Imagem ao Logar - focaximubh - 19.05.2013

Quote:
Originally Posted by VSxD
Посмотреть сообщение
nгo estб aparecendo a imagem ;(
esqueceu de colocar:


pawn Код:
OnPlayerConnect:

TextDrawShowForPlayer(playerid, IMGEntrada);

OnPlayerRequestClass:

TextDrawHideForPlayer(playerid, IMGEntrada);

OnPlayerSpawn:

TextDrawHideForPlayer(playerid, IMGEntrada);



Re: Imagem ao Logar - Don_Speed - 19.05.2013

Usse isto para vocк ter uma logica