Jump to content

Cum aplici o animatie


IstuntmanI

Recommended Posts

Cum aplici o animatie

Tutorial creat de [sRC]stuntman (eu)

ApplyAnimation

Utilizarea: :D

ApplyAnimation( playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time, forcesync );
Explicatie termeni: playerid - Jucatorul care o sa execute animatia. animlib[] - Numele grupei animatiei. (GRUPE) animname[] - Numele animatiei. (NUME) Float:fDelta - Viteza cu care este executata animatia. loop - Loop 0/1, 0 daca sa se execute doar odata, sau 1 daca se sa execute mereu. lockx - 0/1, 0 sa nu se poata misca jucatorul cand executa animatia, 1 sa se poata misca jucatorul cand executa animatia. locky - 0/1, 0 sa nu se poata misca jucatorul cand executa animatia, 1 sa se poata misca jucatorul cand executa animatia. freeze - 0 sa nu se poata misca jucatorul cand termina animatia, 1 sa se poata misca jucatorul cand termina animatia. time - In milisecunde, 0 se pune cand nu se executa doar odata animatia, iar ... vreo 600 cand se executa doar odata. forcesync - Ca sa forteze sincronizarea, adica sa o vada si alti jucatori cand scrii prima data comanda, 1 ca sa forteze, 0 ca sa nu forteze Exemplu animatie, o puneti sub OnPlayerCommandText(playerid, cmdtext[]):
if( strcmp( cmdtext, "/lay", true ) == 0 ) 
	return ApplyAnimation( playerid, "BEACH", "bather", 4.0, 1, 0, 0, 0, 0, 1 ); // Lay down
Daca ati facut cum am explicat ar trebui sa arate cam asa:
public OnPlayerCommandText( playerid, cmdtext[ ] )
{
	if( strcmp( cmdtext, "/lay", true ) == 0 ) 
		return ApplyAnimation( playerid, "BEACH", "bather", 4.0, 1, 0, 0, 0, 0, 1 ); // Lay down

	return 0;
}

Daca doriti un FS cu animatii, vi-l recomand pe acesta: VyoAnims, daca vreti puteti adauga alte animatii urmand tutorialul.

Link to comment
Share on other sites

Guest farse

Poate "Cum aplici o animatie" sau "Cum creezi o comanda cu o animatie",dar inca nu se poate sa creezi o animatie in sa-mp(animatia in sine,gen cea cand urci in masina,ca daca sar putea,am baga pk in sa-mp  ::) )

bv,+1

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 year later...
  • 3 weeks later...
  • 3 months later...

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.