Jump to content

[TURORIAL] Actorii pe server!


Nica_Mihai

Recommended Posts

Salutare !

Astazi o sa va spun si voua cum puteti pune actori pe server!

In primul rand ne ducem in Gamemode si  cautati CreateVehicle sau LoadSistems();

si creati o linie noua si pastati comanda asta : CreateActor(modelid, Float:X, Float:Y, Float:Z, Float:Rotation);

La modelid puneti id-ul skinului dorit.

la Float:X, Float:Y, Float:Z puneti pozitia sin joc , O puteti salva cu comanda /save >nume<

Si la rotatie puneti rotatia ! O loati tot in /save

Exemplut : CreateActor(26, 1439.9125,-2291.0591,13.5469,315.3553);

Daca merge +

Edited by StiK
  • Haha 1
Link to comment
Share on other sites

  • 1 month later...
  • 4 weeks later...

As spune ca acest tutorial nu are nici un sens,uite o varianta mai buna si mai detaliat

Citat

//variabile

new actor[1];

Citat

//ongamemodeinit

actor[0] = CreateActor(26, 1439.9125,-2291.0591,13.5469,315.3553);

SetActorVirtualWorld(playerid, 0); // mai zi ca poti actorului de adaugut si alta lume virtuala

ApplyActorAnimation(actor[0], "DANCING", "DAN_Loop_A", 4.1, 1, 0, 0, 0, -1); // actorul mai are si animatie daca doresti 

// Si la final in general toate functiile actorului

  • SetActorPos
  • GetActorPos
  • SetActorFacingAngle
  • GetActorFacingAngle
  • SetActorVirtualWorld
  • ApplyActorAnimation
  • ClearActorAnimations
  • GetPlayerCameraTargetActor
  • IsActorStreamedIn

Daca te apuci sa faci ceva fa ca totul sa fie ok si inteles nu pur si simplu ai adaugat functia cu actorul si gata

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.