[Ajuda] Text Draw em um raio de... І
#1

Boa Tarde.

Estou tentando gerar um cуdigo, na qual um player que estiver dentro de uma gangzone x, irб poder visualizar uma textdraw.

Cуdigo

PHP код:
forward textcarga(playerid);
public 
textcarga()
{
   for(new 
i=0i<MAX_PLAYERSi++)
   {
       if(
IsPlayerInPlace(i,268.59371409.626310.474289.8262)) {
       
GangZoneFlashForAll(gangzone0xFFFFFFAA);
       
TextDrawHideForPlayer(itextdraw); }
       if(
IsPlayerInPlace(i2176.9348, -2304.465313.5469166.0616)) {
       
GangZoneFlashForAll(gangzone0xFFFFFFAA);
       
TextDrawHideForPlayer(itextdraw); }
   }
   return 
1;
}
stock IsPlayerInPlace(playerid,Float:XMin,Float:YMin,Float:XMax,Float:YMax )
{
   new 
RetValue 0;
   new 
Float:X,Float:Y,Float:Z;
   
GetPlayerPos(playerid,X,Y,);
   if( 
>= XMin && >= YMin && XMax && YMax )
   {
      
RetValue 1;
   }
   return 
RetValue;

Este й o cуdigo, porйm, quando eu vou atй as coordenadas, em cima da gangzone, a textdraw nгo й apresentada '-'. E a text funciona normalmente, testei em um comando, e ela funcionou.
Aguardo respostas!
Reply


Messages In This Thread
Text Draw em um raio de... І - by Ley - 26.04.2013, 19:49
Re: Text Draw em um raio de... І - by mau.tito - 26.04.2013, 20:00
Re: Text Draw em um raio de... І - by Ley - 26.04.2013, 20:02
Re: Text Draw em um raio de... І - by Ley - 26.04.2013, 21:53
Re: Text Draw em um raio de... І - by Gleisson_. - 26.04.2013, 22:10
Re: Text Draw em um raio de... І - by Don_Speed - 26.04.2013, 22:11

Forum Jump:


Users browsing this thread: 2 Guest(s)