[Ajuda] TextDraw em gangzone - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] TextDraw em gangzone (
/showthread.php?tid=454894)
TextDraw em gangzone -
minimessi10 - 30.07.2013
Eu preciso saber como crio um textdrawn na gangzone por exemplo o player entra na gangzone e aparece um texto quando ele sai o texto й destroido alguem pode me ajudar ?
Re: TextDraw em gangzone -
Standby - 30.07.2013
cria a sua text draw no Zamaroth'
pawn Код:
new Text:Gang;
//Ongamemodinit
SetTimer("Local", 100, 1);
Gang = TextDrawCreate(209.000000, 428.000000, "Bem vindo ao Gang Zone");
TextDrawBackgroundColor(Gang, 255);
TextDrawBackgroundColor(Gang,0x000000FF);
TextDrawFont(Gang, 3);
TextDrawLetterSize(Gang, 0.500000, 2.000000);
TextDrawColor(Gang, -1);
TextDrawSetOutline(BemVindo2, 1);
TextDrawSetProportional(Gang, 1);
TextDrawSetSelectable(Gang, 1);
crie uma public pra mostrar o local que vai mostar
pawn Код:
forward Local();
public Local()
for (new i=0;i<MAX_PLAYERS;i++){
if(IsPlayerConnected(i)){
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ GangZone
if(IsPlayerInRangeOfPoint(i, 80.0, -513.0049,-97.3194,62.7445))
{
TextDrawShowForPlayer(i, Gang);// FAz mostrar
} else {
TextDrawHideForPlayer(i, Gang); // Faz desaparecer
}
}
}
Re: TextDraw em gangzone -
B4dB0y - 30.07.2013
Procure: Sistema de Gang Zone Dominбvel por CheckPoint
Todas virгo com um sistema de GameText..
Ou tambйm vocк poderб alterar e colocar em TextDraw, como o @Standby citou. Mais creio que seria desnecessбrio, pois para que criar uma nova TextDraw em vez de um GameText atualizando de 1 em 1 segundo.
Lembrando que tambйm usando os timerґs de maneira incorreta, pode ocorrer intenso lag ao servidor!