SA-MP Forums Archive
[Pedido] Actor - 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: [Pedido] Actor (/showthread.php?tid=632534)



Actor - Dimbalada - 15.04.2017

PHP код:
new MyActor; //news na gm
public OnGameModeInit()
{
    
MyActor = CreateActor(179, 316.1, -134.0, 999.6, 90.0); // Actor as a salesperson in Ammunation.
    
if(IsValidActor(MyActor))
    {
        new 
Text3D:label = Create3DTextLabel("Hello, I am new here!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0);
        
Attach3DTextLabelToPlayer(label, MyActor, 0.0, 0.0, 0.7);
    }
    return 
1;
} 
tipo eu boto da maior erros ai tipo queria so criar tipo uma npc mais so ia fica parada nesse lugar 179, 316.1, -134.0, 999.6, 90.0


Re: Actor - didimk157 - 15.04.2017

n entendi '-'


Re: Actor - AuhMaru - 15.04.2017

Код:
CreateActor(179, 316.1, -134.0, 999.6, 90.0);
Create3DTextLabel("Nick_Actor", -1, 316.1, -134.0, 1000.6, 40, 0, 0);



Re: Actor - IlanZ - 15.04.2017

PHP код:
new MyActor;
public 
OnGameModeInit() 
{ 
    
MyActor = CreateActor(179, 316.1, -134.0, 999.6, 90.0); 
    new 
Text3D:label = Create3DTextLabel("Hello, I am new here!", 0x008080FF, 30.0, 40.0, 50.0, 40.0, 0); 
    
Create3DTextLabel("Hello, I am new here!", 0x008080FF, 316.1, -134.0, 1001, 15.0, 0);
    
SetActorInvulnerable(MyActor, true);
    return 
1; 
}