[Ajuda] Sistema de localizaзгoІ
#2

PHP Code:
public TextLocalizado(playeridgiveplayerid

        if(
IsPlayerConnected(giveplayerid)) 
        { 
         new 
giveplayer[78], string[78]; 
         
GetPlayerName(playeridsendernamesizeof(sendername)); 
         
GetPlayerName(giveplayeridgiveplayersizeof(giveplayer)); 
         new 
Float:xFloat:yFloat:z
         
GetPlayerPos(giveplayeridxyz); 
         new 
Float:Procurado GetPlayerDistanceFromPoint(playeridxyz); 
         
TextDrawHideForPlayer(playerid,oficial4); 
         
TextDrawHideForPlayer(playerid,TextLocalizando); 
         
format(stringsizeof(string), "Procurado: %s     Distancia: %.2f metros" giveplayerProcurado); 
          
TextDrawSetString(TextLocalizandostring); 
         
TextDrawShowForPlayer(playerid,TextLocalizando); 
        } 
        else 
        { 
        
TextDrawHideForPlayer(playerid,TextLocalizando); 
        
TextDrawShowForPlayer(playerid,oficial4); 
        } 

Teste..
Reply


Messages In This Thread
Sistema de localizaзгoІ - by MateGPlay - 02.11.2018, 18:16
Re: Sistema de localizaзгoІ - by cristiannh2 - 02.11.2018, 19:05
Re: Sistema de localizaзгoІ - by MateGPlay - 02.11.2018, 19:39

Forum Jump:


Users browsing this thread: 1 Guest(s)