Jump to content

[REZOLVAT] Intrebare - Creare Bot


Ionut09
 Share

Recommended Posts

  • Username : Ionut09
  • Problema întâlnită: Cum creeam un bot ? Adica un skin intr-un anumit loc.
  • Detalii despre problemă:-
  • Ce ai încercat să faci înainte să postezi?:     AddPlayerClass(292,1078.3492,-1792.4916,13.6630,268.6295,0,0,0,0,0,0);
  • Cod sursa (recomandat pastebin.com) :  -
  • Alte detalii : -
Link to comment
Share on other sites

9 minutes ago, Dani3l. said:

Daca te referi la actori foloseste-te de CreateActor

Am incercat asa, dar nu a aparut actorul deoc. Vreau sa aiba si animatia de la /dealstance.

    new shopactor;
     shopactor = CreateActor(292,1078.3492,-1792.4916,13.6630,268.6295);
    SetActorInvulnerable(shopactor , true);

Link to comment
Share on other sites

Acum 1 minut, Ionut09 a spus:

Am incercat asa, dar nu a aparut actorul deoc. Vreau sa aiba si animatia de la /dealstance.

    new shopactor;
     shopactor = CreateActor(292,1078.3492,-1792.4916,13.6630,268.6295);
    SetActorInvulnerable(shopactor , true);

Pune spatii dupa virgule la

     shopactor = CreateActor(292,1078.3492,-1792.4916,13.6630,268.6295);

Si pentru animatii te poti folosi de functia "ApplyActorAnimation" - http://wiki.sa-mp.com/wiki/ApplyActorAnimation

 

Link to comment
Share on other sites

Acum 3 minute, Ionut09 a spus:

Am incercat asa, dar nu a aparut actorul deoc. Vreau sa aiba si animatia de la /dealstance.

    new shopactor;
     shopactor = CreateActor(292,1078.3492,-1792.4916,13.6630,268.6295);
    SetActorInvulnerable(shopactor , true);

Daca actorul trebuie pus intr-un virtual diferit de 0, trebuie sa folosesti si SetActorVirtualWorld(shopactor, virtualul_dorit);

Un actor ca sa foloseasca o animatie, trebuie sa folosesti ApplyActorAnimation.

Exemplu: 

ApplyActorAnimation(shopactor, "DEALER", "DEALER_IDLE", 4.0, 1, 0, 0, 0, 0);

Asa ii vei da actorului animatia de 'crossarms'.

 

EDIT: Daca tot nu apare actorul, asigura-te ca il si incarci, creeaza-l la OnGamemodeInit.

Edited by iMatt

Respecta si vei fi respectat.

 

BigInt Pawn:

Pacman C++: 

Snake C++:

Minesweeper C++:

 

mattbb.cash

leaks.ro

Link to comment
Share on other sites

1 minute ago, iMatt said:

Daca actorul trebuie pus intr-un virtual diferit de 0, trebuie sa folosesti si SetActorVirtualWorld(shopactor, virtualul_dorit);

Un actor ca sa foloseasca o animatie, trebuie sa folosesti ApplyActorAnimation.

Exemplu: 


ApplyActorAnimation(shopactor, "DEALER", "DEALER_IDLE", 4.0, 1, 0, 0, 0, 0);

Asa ii vei da actorului animatia de 'crossarms'.

 

EDIT: Daca tot nu apare actorul, asigura-te ca il si incarci, creeaza-l la OnGamemodeInit.

Care e animatia de la dealstance ?

Link to comment
Share on other sites

Am pus la gamemodeinit

    shopactor = CreateActor(292, 1078.3492, -1792.4916, 13.6630, 268.6295);
    SetActorInvulnerable(shopactor , true);
    ApplyActorAnimation(shopactor, "DEALER", "DEALER_IDLE", 4.0, 1, 0, 0, 0, 0);

Nu apare actorul deloc.

Edited by Ionut09
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...