[Ajuda] Imagem de tela de login rodomica
#2

Vocк nгo quer dizer random ?


Mas aqui estб:

pawn Код:
#include <a_samp>

new Text:Sprite0;

new Sprites[][128] =
{
"loadsc10:loadsc10",
"loadsuk:loadsc2",
"loadsuk:loadsc3",
"loadsuk:loadsc4",
"loadsuk:loadsc5",
"loadsuk:loadsc6",
"loadsuk:loadsc8",
"loadsuk:loadsc9",
"loadsc13:loadsc13",
"loadsc12:loadsc12"
};

public OnFilterScriptInit()
{
Sprite0 = TextDrawCreate(-3.500, -0.500, "loadsc10:loadsc10");
TextDrawFont(Sprite0, 4);
TextDrawTextSize(Sprite0, 661.000, 466.000);
TextDrawColor(Sprite0, -1);
return 1;
}


public OnFilterScriptExit()
{
TextDrawDestroy(Sprite0);
return 1;
}


public OnPlayerConnect(playerid)
{
TextDrawSetString(Sprite0, Sprites[random(sizeof(Sprites))]);
TextDrawShowForPlayer(playerid,Sprite0);
SetTimerEx("Unload", 60000 * 2, false, "d", playerid);
return 1;
}

forward Unload(p); public Unload(p)
{
TextDrawHideForPlayer(p, Sprite0);
return true;
}
Reply


Messages In This Thread
Imagem de tela de login rodomica - by PetterAdriano - 11.01.2014, 08:39
Re: Imagem de tela de login rodomica - by ZaturN - 11.01.2014, 08:47
Re: Imagem de tela de login rodomica - by PetterAdriano - 11.01.2014, 09:29
Re: Imagem de tela de login rodomica - by ZaturN - 11.01.2014, 09:30
Re: Imagem de tela de login rodomica - by Marlon307 - 17.07.2014, 18:57

Forum Jump:


Users browsing this thread: 1 Guest(s)