Textdraws com MAX_PLAYERS -
[XPG]MarlonCS - 18.07.2012
Seguinte, coloquei algumas textdraws no meu server com MAX_PLAYERS.
cokfundo[MAX_PLAYERS]; < por exemplo
Mas, as demais, sem MAX_PLAYERS nгo estгo funcionando mais como funcionavam antes.
Alguйm poderia me ajudar?
Re: Textdraws com MAX_PLAYERS -
paulor - 18.07.2012
Como ? Poste algo meu caro!
Re: Textdraws com MAX_PLAYERS -
Don_Speed - 18.07.2012
usa o Lop no GameModeInit ¬¬
Re: Textdraws com MAX_PLAYERS -
[XPG]MarlonCS - 18.07.2012
kkkk tudo que eu queria foi postado
pawn Код:
cokfundo[i] = TextDrawCreate(1.0, 427.0, " ~w~[ ~b~City ~w~Of ~r~Killers~w~ ] [~g~Forum~w~: cokbr.forumbrasil.net ]");
TextDrawUseBox(cokfundo[i], true);
TextDrawBoxColor(cokfundo[i], 0x00000066);
TextDrawSetOutline(cokfundo[i], 1);
TextDrawFont(cokfundo[i], 2);
TextDrawSetProportional(cokfundo[i], true);
TextDrawAlignment(cokfundo[i], 1);
TextDrawLetterSize(cokfundo[i], 0.4, 2.0);
TextDrawSetShadow(cokfundo[i], 1);
Isso й um Textdraw com MAX_PLAYERS.
pawn Код:
afk = TextDrawCreate(260.000000,222.000000,"~r~AFK ~w~( sair: ~g~/afkoff~w~ )");
TextDrawSetOutline(afk, 1);
TextDrawFont(afk, 2);
TextDrawSetProportional(afk, true);
TextDrawAlignment(afk, 1);
TextDrawLetterSize(afk, 0.4, 3.0);
TextDrawSetShadow(afk, 1);
E esse й um sem.
O problema й que quando eu coloco todos para MAX_PLAYERS, alguns nгo aparecem, e quando coloco alguns sem MAX_PLAYERS, esses nгo funcionam.
Re: Textdraws com MAX_PLAYERS -
Don_Speed - 18.07.2012
tutorial >> https://sampforum.blast.hk/showthread.php?tid=147555
Modo Lop GameModeInit
pawn Код:
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, nometextdraw);
}
}
Re: Textdraws com MAX_PLAYERS -
paulor - 18.07.2012
Quote:
Originally Posted by Don_Speed
|
Nгo precisa disso.
Oq vc postou nгo tem como te ajudar... Vc estб colocando em que lugar isso ? ta mostrando corretamente ?
Re: Textdraws com MAX_PLAYERS -
Don_Speed - 18.07.2012
Quote:
Originally Posted by paulor
Nгo precisa disso.
Oq vc postou nгo tem como te ajudar... Vc estб colocando em que lugar isso ? ta mostrando corretamente ?
|
Serio *-* , Cara olha a TextDraw dele
pawn Код:
cokfundo[i] = TextDrawCreate(1.0, 427.0, " ~w~[ ~b~City ~w~Of ~r~Killers~w~ ] [~g~Forum~w~: cokbr.forumbrasil.net ]");
TextDrawUseBox(cokfundo[i], true);
TextDrawBoxColor(cokfundo[i], 0x00000066);
TextDrawSetOutline(cokfundo[i], 1);
TextDrawFont(cokfundo[i], 2);
TextDrawSetProportional(cokfundo[i], true);
TextDrawAlignment(cokfundo[i], 1);
TextDrawLetterSize(cokfundo[i], 0.4, 2.0);
TextDrawSetShadow(cokfundo[i], 1);
¬¬
Re: Textdraws com MAX_PLAYERS -
[XPG]MarlonCS - 18.07.2012
Quote:
Originally Posted by Don_Speed
Serio *-* , Cara olha a TextDraw dele
pawn Код:
cokfundo[i] = TextDrawCreate(1.0, 427.0, " ~w~[ ~b~City ~w~Of ~r~Killers~w~ ] [~g~Forum~w~: cokbr.forumbrasil.net ]"); TextDrawUseBox(cokfundo[i], true); TextDrawBoxColor(cokfundo[i], 0x00000066); TextDrawSetOutline(cokfundo[i], 1); TextDrawFont(cokfundo[i], 2); TextDrawSetProportional(cokfundo[i], true); TextDrawAlignment(cokfundo[i], 1); TextDrawLetterSize(cokfundo[i], 0.4, 2.0); TextDrawSetShadow(cokfundo[i], 1);
¬¬
|
._.
Deixa pra lб kkkk
Re: Textdraws com MAX_PLAYERS -
Abravanel - 18.07.2012
No textdraw
cokfundo nгo а a necessidade de usar MAX_PLAYERS.
Manipule-o como um textdraw comum.
Re: Textdraws com MAX_PLAYERS -
DrTHE - 18.07.2012
Nгo precisa criar textdraw com loop, use
https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw