11.01.2014, 08:39
Alguйm sabe um tuto pra deixa a imagem de tela de login rodom ?
EX:
TelasLogin[][] =
{
"loadsc3:loadsc3",
"loadsc4:loadsc4",
},
EX:
TelasLogin[][] =
{
"loadsc3:loadsc3",
"loadsc4:loadsc4",
},
#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;
}