[Pedido] Imagem ao Logar
#1

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

como assim tipo randomico
Reply
#3

Ezato
Reply
#4

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;

Reply
#5

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

nгo estб aparecendo a imagem ;(
Reply
#7

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);
Reply
#8

Usse isto para vocк ter uma logica
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)