[AJUDA]Text Draw -
judson diogo - 11.03.2010
Ae galera eu vim recorrer ao topico como unica alternativa
, e q uma ves eu vi num server Text Draw ficava mudando sosinho e eu queria criar eu procurei q so em blogs no site do sa-mp, maz nгo achei e eu ficaria muito feliz
se vcs me ajudasem.
Re: [AJUDA]Text Draw -
SlashPT - 11.03.2010
mudar sozinho??
como assim?
Re: [AJUDA]Text Draw -
judson diogo - 12.03.2010
e tipo assim por exemplo: tem o nome sa-mp ai muda pra teste so sinho. ai dai ele fica so mudando pra outro onomes ate voltar pro primeiro.
Re: [AJUDA]Text Draw -
SlashPT - 12.03.2010
ha oh pah nao testei tenta ai e diz alguma coisa...
:P ate box e tudo tem xD
pawn Код:
#include <a_samp>
new Text:Textdraw0, timerz;
forward ChangeText();
public OnFilterScriptInit()
{
Textdraw0 = TextDrawCreate(499.000000, 119.000000, "SA-MP");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 2);
TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
TextDrawColor(Textdraw0, 65535);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 102);
TextDrawTextSize(Textdraw0, 563.000000, 3.000000);
SetTimer("ChangeText", 5000, 1);
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, Textdraw0);
}
}
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
return 1;
}
public ChangeText()
{
if(timerz == 0)
{
TextDrawSetString(Textdraw0, "SA:MP");
timerz = 1;
}
else
{
TextDrawSetString(Textdraw0, "Test!");
timerz = 0;
}
}
Re: [AJUDA]Text Draw -
judson diogo - 13.03.2010
ae mano deu serto valeu de coraзгo...
Re: [AJUDA]Text Draw -
judson diogo - 13.03.2010
ae mano tem como colocar mais nomes la? eu tentei sendo q da um erro sera q tem como colocar outro, se tiver me dis como foi q vc coloco ok ?
Re: [AJUDA]Text Draw -
SlashPT - 13.03.2010
pawn Код:
#include <a_samp>
new Text:Textdraw0, timerz;
forward ChangeText();
public OnFilterScriptInit()
{
Textdraw0 = TextDrawCreate(499.000000, 119.000000, "SA-MP");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 2);
TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
TextDrawColor(Textdraw0, 65535);
TextDrawSetOutline(Textdraw0, 1);
TextDrawSetProportional(Textdraw0, 1);
TextDrawUseBox(Textdraw0, 1);
TextDrawBoxColor(Textdraw0, 102);
TextDrawTextSize(Textdraw0, 563.000000, 3.000000);
SetTimer("ChangeText", 5000, 1);
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, Textdraw0);
}
}
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerConnect(playerid)
{
TextDrawShowForPlayer(playerid, Textdraw0);
return 1;
}
public ChangeText()
{
if(timerz == 0)
{
TextDrawSetString(Textdraw0, "SA:MP");
timerz = 1;
}
else if(timerz == 1)
{
TextDrawSetString(Textdraw0, "Test!");
timerz = 2;
}
else if(timerz == 2)
{
TextDrawSetString(Textdraw0, "Outro String");
timerz = 0;
}
}
ve como eu fiz nas ultimas linhas
Re: [AJUDA]Text Draw -
judson diogo - 13.03.2010
vlw manooooooooooooooooooooooooooooooooooooooooooooooo
funfo
Re: [AJUDA]Text Draw -
judson diogo - 15.03.2010
ae mano vc sabe fazer tipo asim se eu chegar numa gz ai aparece o nome da gz e a que gang pertence ? e que eu to fazendo um fs de gang wars ai as gz sгo dominaveis ai eu tava tentando colocar entendeu ? se vc suber fazer me add no msn e:
judson_diogo22@hotmail.com
Re: [AJUDA]Text Draw -
SlashPT - 15.03.2010
usa o
IsPlayerInRangeOfPoint??