[AJUDA] MapIcon ver sу a 10 metros
#1

Resolvido
Reply
#2

Vocк necessitarб de um streamer, aconselho um destes:

[include] Protioso Streamer Funзхes
[Plugin] Streamer Plugin
Reply
#3

No caso seria esse aqui entгo o.o
Код:
native CreateDynamicMapIcon(Float:x, Float:y, Float:z, type, color, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
native DestroyDynamicMapIcon(iconid);
native IsValidDynamicMapIcon(iconid);
native DestroyAllDynamicMapIcons();
native CountDynamicMapIcons();
?
Reply
#4

Sim! este й do plugin.

pawn Код:
CreateDynamicMapIcon(X, Y, Z, Tipo, cor, VirtualWorld, InteriorID, PlayerID, DistвnciaParaVisualizaзгo);
Para visualizar o mapicon em todos os virtualworld e interiorid e todos os playerids utilize o valor -1.
Reply
#5

hum, mais assim nгo vou usar ele em interior nenhum й icon de casas, eu coloco oque no lugar do interior e tals ?
Reply
#6

interior = -1
virtualworld = -1
playerid = -1

Quer dizer, todos.
Reply
#7

certo nunca usei isso nгo sei muito mais vou etntar aqui manolo brigado pela atenзгo volto a postar se eu conseguir hehe ;]
Reply
#8

Tem um outro jeito tambйm:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 10, X_DO_MAPICON, Y_DO_MAPICON, Z_DO_MAPICON))
               {
                    SetPlayerMapIcon(blah);
                    return 1;
               }
Nгo testado, mas deve funcionar com um timer pra checar se estб a 10 metros do bagulho.
Reply
#9

Quote:
Originally Posted by [BEP]AcerPilot
Посмотреть сообщение
Tem um outro jeito tambйm:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 10, X_DO_MAPICON, Y_DO_MAPICON, Z_DO_MAPICON))
               {
                    SetPlayerMapIcon(blah);
                    return 1;
               }
Nгo testado, mas deve funcionar com um timer pra checar se estб a 10 metros do bagulho.
Aprovado.
Reply
#10

Vocк testou ai manolo ?

se testou e deu certo manda um mini tut pra mim favor XD agradeзo!

Obs: estou no serviзo UEHAEIEA!
Reply


Forum Jump:


Users browsing this thread: 7 Guest(s)