SA-MP Forums Archive
[Ajuda] Como criar NPCs ou BOTs de ajudas a novatos ? - 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] Como criar NPCs ou BOTs de ajudas a novatos ? (/showthread.php?tid=583387)



Como criar NPCs ou BOTs de ajudas a novatos ? - ScripterInicianteBR - 28.07.2015

Como crio BOTs ou NPCs de ajudas que fica em um local que quando o player for atй o bot apertar " F " ai abre uma janelinha de ajuda ?


Re: Como criar NPCs ou BOTs de ajudas a novatos ? - n0minal - 28.07.2015

Nгo entendo, vocкs postam a lуgica inteira do sistema e perguntam como fazer, wtf? Й sу seguir os passos que vocк mesmo citou e procurar as funзхes / callbacks que se referem a cada passo.

https://sampwiki.blast.hk/wiki/CreateActor
https://sampwiki.blast.hk/wiki/Create3DTextLabel
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
https://sampwiki.blast.hk/wiki/ShowPlayerDialog


Re: Como criar NPCs ou BOTs de ajudas a novatos ? - Holl - 28.07.2015

Quote:
Originally Posted by ipsLeon
Посмотреть сообщение
Nгo entendo, vocкs postam a lуgica inteira do sistema e perguntam como fazer, wtf? Й sу seguir os passos que vocк mesmo citou e procurar as funзхes / callbacks que se referem a cada passo.

https://sampwiki.blast.hk/wiki/CreateActor
https://sampwiki.blast.hk/wiki/Create3DTextLabel
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
https://sampwiki.blast.hk/wiki/ShowPlayerDialog
kk pra tu ver...


Re: Como criar NPCs ou BOTs de ajudas a novatos ? - blastdap - 28.07.2015

Isso й mais fбcil que tirar doce de crianзa.... sйrio.


Re: Como criar NPCs ou BOTs de ajudas a novatos ? - ScripterInicianteBR - 28.07.2015

sу nгo entendi como colocar colocar a texlabel em cima do NPC me ajudem


Re: Como criar NPCs ou BOTs de ajudas a novatos ? - ipsLuan - 28.07.2015

PHP код:
new MyActor;
 
public 
OnGameModeInit()
{
    
MyActor CreateActor(179316.1, -134.0999.690.0); // Actor as a salesperson in Ammunation.
    
if(IsValidActor(MyActor))
    {    
        new 
Text3D:label Create3DTextLabel("Hello, I am new here!"0x008080FF30.040.050.040.00);
        
Attach3DTextLabelToPlayer(labelMyActor0.00.00.7);
    }
    return 
1;




Re: Como criar NPCs ou BOTs de ajudas a novatos ? - ScripterInicianteBR - 28.07.2015

IpsLuan , Obrigado deu certo :3