Jump to content

Question

Posted (edited)

Cand folosesc aceasta animatie, doar eu o vad. Cei din jur nu: ApplyAnimation(playerid, "CHAINSAW","WEAPON_csawlo", 4.0, 0, 0, 0, 0, 3000, 1);

Dar cand o folosesc pe aceasta de exemplu, o vad si jucatorii din jur: ApplyAnimation(playerid, "ON_LOOKERS", "Pointup_loop", 4.0, 1, 0, 0, 0, 0, 1);

Libraria CHAINSAW este preincarcata deja. Aveti idee de ce?

Edited by TheGodfather

16 answers to this question

Recommended Posts

  • 0
Posted
new Float:x,
	Float:y, 
	Float:z;

GetPlayerPos(playerid, x, y, z);

foreach(new i : Player) {
    if(i != playerid && IsPlayerInRangeOfPoint(i, 10.0, GetPlayerPosX(playerid), GetPlayerPosY(playerid), GetPlayerPosZ(playerid)))
    {
        ApplyAnimation(i, "CHAINSAW", "WEAPON_csawlo", 4.0, 0, 0, 0, 0, 3000, 1);
    }
}

 

  • 0
Posted
1 hour ago, khain.dev said:
new Float:x,
	Float:y, 
	Float:z;

GetPlayerPos(playerid, x, y, z);

foreach(new i : Player) {
    if(i != playerid && IsPlayerInRangeOfPoint(i, 10.0, GetPlayerPosX(playerid), GetPlayerPosY(playerid), GetPlayerPosZ(playerid)))
    {
        ApplyAnimation(i, "CHAINSAW", "WEAPON_csawlo", 4.0, 0, 0, 0, 0, 3000, 1);
    }
}

 

Cand tastez comanda /dig, doar eu trebuie sa fac animatia. Daca sunt jucatori in jurul meu, ei nu trebuie sa o faca. Trebuia doar sa ma vada pe mine ca o fac.

  • 0
Posted
1 hour ago, ASGOOD said:

scoate foreach si pune applyanimation(playerid, etc)

Nu am avut niciodata foreach. Problema e simpla:
1. Jucatorul da /dig, animatie se aplica, jucatorul o vede.
2. Alti jucatori din jur nu vad animatia jucatorului care da /dig, desi ar trebui

  • 0
Posted
1 hour ago, TheGodfather said:

Nu am avut niciodata foreach. Problema e simpla:
1. Jucatorul da /dig, animatie se aplica, jucatorul o vede.
2. Alti jucatori din jur nu vad animatia jucatorului care da /dig, desi ar trebui

La on player connect da un preload la animatie, ApplyAnimation(playerid, "CHAINSAW", "null", 4.1, 0,0,0,0,0);

maxresdefault.jpg

 

 

 

  • 0
Posted
4 minutes ago, ASGOOD said:

La on player connect da un preload la animatie, ApplyAnimation(playerid, "CHAINSAW", "null", 4.1, 0,0,0,0,0);

Am deja asta

  • 0
Posted

Hmm...verifica daca CHAINSAW este incarcat corect si nu are erori, este complicat sa ne dăm seama din ce motiv nu arata si celor din jur, incearca si codul de jos

CMD:dig(playerid, params[]) {
    ClearAnimations(playerid);
    ApplyAnimation(playerid, "CHAINSAW", "WEAPON_csawlo", 4.0, 1, 0, 0, 0, 3000, 1);
    ForceClassSelection(playerid);
    return 1;
}

 

  • 0
Posted
5 hours ago, khain.dev said:

Hmm...verifica daca CHAINSAW este incarcat corect si nu are erori, este complicat sa ne dăm seama din ce motiv nu arata si celor din jur, incearca si codul de jos

CMD:dig(playerid, params[]) {
    ClearAnimations(playerid);
    ApplyAnimation(playerid, "CHAINSAW", "WEAPON_csawlo", 4.0, 1, 0, 0, 0, 3000, 1);
    ForceClassSelection(playerid);
    return 1;
}

 

Tot nu a rezolvat problema

  • 0
Posted (edited)

In server log nu ai erori? Vezi ca problema ar putea fi in OnPlayerStreamIn, anume acest plugin aplica animatia daca catre alti jucatori, trimite ce cod ai acolo, plus actualizează plugin-ul streamer inclusiv si includul, ar putea fi problema si aici

3 hours ago, TheGodfather said:

Tot nu a rezolvat problema

 

Edited by khain.dev
  • 0
Posted
2 minutes ago, khain.dev said:

In server log nu ai erori? Vezi ca problema ar putea fi in OnPlayerStreamIn, anume acest plugin aplica animatia daca catre alti jucatori, trimite ce cod ai acolo, plus actualizează plugin-ul streamer inclusiv si includul, ar putea fi problema si aici

 

Nu am "OnPlayerStreamIn". Nu cred ca are nicio legatura cu pluginurile. Alte animatii, precum cea de la /salute sau animatia BOMBER_plant din libraria BOMBER nu au nicio problema. Le vad si jucatorii din jur.

  • 0
Posted
1 hour ago, TheGodfather said:

Nu am "OnPlayerStreamIn". Nu cred ca are nicio legatura cu pluginurile. Alte animatii, precum cea de la /salute sau animatia BOMBER_plant din libraria BOMBER nu au nicio problema. Le vad si jucatorii din jur.

CSAW_1

foloseste animatia asta

maxresdefault.jpg

 

 

 

  • 0
Posted
13 hours ago, ASGOOD said:

CSAW_1

foloseste animatia asta

ApplyAnimation(playerid, "CHAINSAW","CSAW_1", 4.0, 0, 0, 0, 0, 3000, 1);

Tot nu vad jucatorii din jur.

Join the conversation

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

Guest
Answer this question...

×   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.