SA-MP Forums Archive
[Ajuda] TextDraw - 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 (/showthread.php?tid=457401)



TextDraw - MoonRey - 11.08.2013

Eu preciso de ajuda na parte do TextDrawForPlayer, eu fiz dessa forma:

pawn Код:
//Topo do GM

 new Text:carregarpetrolheiro;

 //OnGameModeInit

 carregarpetrolheiro = TextDrawCreate(240.0,580.0,"Area de Carregamento Petrolheiros");

 if(IsPlayerInRangeOfPoint(playerid,250.0,149.8828,1392.7751,10.5859)){
 TextDrawShowForPlayer(playerid,carregarpetrolheiro);
 }
Mas nгo funciona quando vai no Local definido, alguem ajuda? =/


Re: TextDraw - mau.tito - 11.08.2013

Tenta assim !
pawn Код:
new Text:carregarpetrolheiro[MAX_PLAYERS];

 //onplayerconnect

 carregarpetrolheiro[playerid] = TextDrawCreate(240.0,580.0,"Area de Carregamento Petrolheiros");
 TextDrawHideForPlayer(playerid, carregarpetrolheiro[playerid]);

 if(!IsPlayerInRangeOfPoint(playerid, 250.0 ,149.8828,1392.7751,10.5859))
 { }
 else
 {
     TextDrawShowForPlayer(playerid,carregarpetrolheiro[playerid]);
 }



Re: TextDraw - luancalixto - 11.08.2013

errei !!


Re: TextDraw - MoonRey - 11.08.2013

Valew mau.tito sempre me ajudando :3