Help with Anims.
#1

hey i would like a cmd something like /pedwalk /pedmove

ive seen it on another server called SARP

you type /pedwalk 1-20 and for eg. you do /pedwalk 4 you walk like grandpa
and stuff like that?


if you can help thatd be awesome thanks
Reply
#2

i have that in my old gamemode, you can have them. here are a they, change what you want:
Код:
// === [Animations] ===
	if(strcmp(cmd, "/animations", true) == 0 || strcmp(cmd, "/anims", true) == 0)
	{
	  SendClientMessage(playerid, COLOR_CYAN, "=============================== Animations ===============================");
	  SendClientMessage(playerid, COLOR_WHITE, "/phone, /handsup, /drunk, /bomb, /laugh, /chat, /slapass /dance, /taichi, /bitchslap, /balls, /kiss");
    SendClientMessage(playerid, COLOR_WHITE, "/crossarms, /lay, /hide, /vomit, /eat, /wave, /deal, /crack, /smoke, /groundsit, /dead, /fucku, /robman");
    return 1;
	}
	if(strcmp(cmd, "/getarrested", true) == 0)
	{
	  if(gFreeze[playerid] == 0)
	  {
			LoopingAnim(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
			gLoopingAnim[playerid] = 1;
		}
		else
		{
 			SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
 			return 1;
		}
		return 1;
	}
  if(strcmp(cmd, "/robman", true) == 0)
	{
	  if(gFreeze[playerid] == 0)
	  {
			LoopingAnim(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 1, 0, 0, 0, 0);
			gLoopingAnim[playerid] = 1;
		}
		else
		{
		  SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
		 	return 1;
		}
		return 1;
	}
	if(strcmp(cmd, "/fucku", true) == 0)
	{
	  if(gFreeze[playerid] == 0)
	  {
	 		OnePlayAnim(playerid,"PED","fucku",4.0,0,0,0,0,0);
	 		gLoopingAnim[playerid] = 1;
		}
		else
		{
		  SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
		}
		return 1;
	}
  if(strcmp(cmd, "/dead", true) == 0)
	{
	  if(gFreeze[playerid] == 0)
	  {
	 		LoopingAnim(playerid,"PED","dead",4.1,0,1,1,1,1);
	 		gLoopingAnim[playerid] = 1;
		}
		else
		{
		  SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
		}
		return 1;
	}
	if(strcmp(cmd, "/groundsit", true) == 0)
	{
	  if(gFreeze[playerid] == 0)
	  {
	 		LoopingAnim(playerid,"BEACH", "ParkSit_M_loop", 4.0, 1, 0, 0, 0, 0);
	 		gLoopingAnim[playerid] = 1;
		}
		else
		{
		  SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
		}
		return 1;
	}
	if(strcmp(cmd, "/kiss", true) == 0)
	{
	  if(gFreeze[playerid] == 0)
	  {
	 		OnePlayAnim(playerid,"PED","kiss",4.1,0,1,1,1,1);
	 		gLoopingAnim[playerid] = 1;
		}
		else
		{
		  SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
		}
		return 1;
	}
  if(strcmp(cmd, "/balls", true) == 0)
	{
	  if(gFreeze[playerid] == 0)
	  {
	 		LoopingAnim(playerid,"MISC","balls",4.1,0,1,1,1,1);
	 		gLoopingAnim[playerid] = 1;
		}
		else
		{
		  SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
		}
		return 1;
	}
	if(strcmp(cmd, "/bitchslap", true) == 0)
	{
	  if(gFreeze[playerid] == 0)
	  {
	 		OnePlayAnim(playerid,"MISC","bitchslap",4.1,0,1,1,1,1);
	 		gLoopingAnim[playerid] = 1;
		}
		else
		{
		  SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
		}
		return 1;
	}
	if(strcmp(cmd, "/taichi", true) == 0)
	{
	  if(gFreeze[playerid] == 0)
	  {
	 		LoopingAnim(playerid,"PARK","Tai_Chi_Loop",4.0,1,0,0,0,0);
	 		gLoopingAnim[playerid] = 1;
		}
		else
		{
		  SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
		}
		return 1;
	}
// === [Handsup] ===
 	if(strcmp(cmd, "/handsup", true) == 0 || strcmp(cmd, "/surrender", true) == 0 || strcmp(cmd, "/sur", true) == 0)
 	{
 	  if(gFreeze[playerid] == 0)
 	  {
			SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
			gLoopingAnim[playerid] = 1;
    	return 1;
		}
		else
		{
 			SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
 			return 1;
		}
  }
// === [Phone animations] ===
 	if(strcmp(cmd, "/phone", true) == 0 || strcmp(cmd, "/cellphone", true) == 0)
	{
	  if(gFreeze[playerid] == 0)
	  {
	    if(gPhone[playerid] == 0)
	    {
	      gPhone[playerid] = 1;
				SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
				gLoopingAnim[playerid] = 1;
    		return 1;
			}
			else
			{
			  gPhone[playerid] = 0;
			  SetPlayerSpecialAction(playerid,SPECIAL_ACTION_STOPUSECELLPHONE);
			  gLoopingAnim[playerid] = 1;
    		return 1;
			}
		}
		else
		{
 			SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
 			return 1;
		}
  }
// === [Drunk] ===
  if(strcmp(cmd, "/drunk", true) == 0)
	{
	  if(gFreeze[playerid] == 0)
	  {
			LoopingAnim(playerid,"PED","WALK_DRUNK",4.0,1,1,1,1,0);
			gLoopingAnim[playerid] = 1;
			return 1;
		}
		else
		{
 			SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
 			return 1;
		}
  }
// === [Bomb] ===
  if (strcmp("/bomb", cmdtext, true) == 0)
	{
	  if(gFreeze[playerid] == 0)
	  {
			ClearAnimations(playerid);
			OnePlayAnim(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
			gLoopingAnim[playerid] = 1;
			return 1;
		}
		else
		{
 			SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
 			return 1;
		}
	}
// === [Laugh] ===
  if (strcmp("/laugh", cmdtext, true) == 0)
	{
	  if(gFreeze[playerid] == 0)
	  {
			OnePlayAnim(playerid, "RAPPING", "Laugh_01", 4.0, 0, 0, 0, 0, 0);
			gLoopingAnim[playerid] = 1;
			return 1;
		}
		else
		{
 			SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
 			return 1;
		}
	}
// === [Crossarms] ===
  if (strcmp("/crossarms", cmdtext, true) == 0)
	{
	  if(gFreeze[playerid] == 0)
	  {
			LoopingAnim(playerid, "COP_AMBIENT", "Coplook_loop", 4.0, 0, 1, 1, 1, -1);
			gLoopingAnim[playerid] = 1;
			return 1;
		}
		else
		{
 			SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
 			return 1;
		}
	}
// === [Lay] ===
  if (strcmp("/lay", cmdtext, true, 6) == 0)
	{
		if(gFreeze[playerid] == 0)
		{
			LoopingAnim(playerid,"BEACH", "bather", 4.0, 1, 0, 0, 0, 0);
			gLoopingAnim[playerid] = 1;
			return 1;
		}
		else
		{
 			SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
 			return 1;
		}
  }
// === [Hide] ===
  if (strcmp("/hide", cmdtext, true, 3) == 0)
	{
	  if(gFreeze[playerid] == 0)
	  {
			LoopingAnim(playerid, "ped", "cower", 3.0, 1, 0, 0, 0, 0);
			gLoopingAnim[playerid] = 1;
			return 1;
		}
		else
		{
 			SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
 			return 1;
		}
	}
// === [Vomit] ===
  if (strcmp("/vomit", cmdtext, true) == 0)
	{
		if(gFreeze[playerid] == 0)
		{
			OnePlayAnim(playerid, "FOOD", "EAT_Vomit_P", 3.0, 0, 0, 0, 0, 0);
			gLoopingAnim[playerid] = 1;
			return 1;
		}
		else
		{
 			SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
 			return 1;
		}
	}
// === [Wave] ===
  if (strcmp("/wave", cmdtext, true) == 0)
	{
		if(gFreeze[playerid] == 0)
		{
  			LoopingAnim(playerid, "ON_LOOKERS", "wave_loop", 4.0, 1, 0, 0, 0, 0);
			gLoopingAnim[playerid] = 1;
			return 1;
		}
		else
		{
 			SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
 			return 1;
		}
	}
// === [Slapass] ===
  if (strcmp("/slapass", cmdtext, true) == 0)
	{
	  if(gFreeze[playerid] == 0)
	  {
			OnePlayAnim(playerid, "SWEET", "sweet_ass_slap", 4.0, 0, 0, 0, 0, 0);
			gLoopingAnim[playerid] = 1;
			return 1;
		}
		else
		{
 			SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
 			return 1;
		}
	}
// === [Deal] ===
  if (strcmp("/deal", cmdtext, true) == 0)
	{
	  if(gFreeze[playerid] == 0)
		{
			OnePlayAnim(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
			gLoopingAnim[playerid] = 1;
			return 1;
		}
		else
		{
 			SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
 			return 1;
		}
	}
// === [Crack] ===
  if (strcmp("/crack", cmdtext, true, 6) == 0)
	{
		if(gFreeze[playerid] == 0)
		{
			LoopingAnim(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
			gLoopingAnim[playerid] = 1;
			return 1;
		}
		else
		{
 			SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
 			return 1;
		}
	}
// === [Smoke] ===
  if (strcmp("/smoke", cmdtext, true, 4) == 0)
	{
	  if(gFreeze[playerid] == 0)
	  {
			LoopingAnim(playerid, "SMOKING", "F_smklean_loop", 4.0, 1, 0, 0, 0, 0);
			gLoopingAnim[playerid] = 1;
			return 1;
		}
		else
		{
 			SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
 			return 1;
		}
	}
// === [Chat] ===
  if(strcmp(cmd, "/chat", true) == 0)
	{
		if(gFreeze[playerid] == 0)
		{
			OnePlayAnim(playerid,"PED","IDLE_CHAT",4.0,0,0,0,0,0);
			gLoopingAnim[playerid] = 1;
			return 1;
		}
		else
		{
 			SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
 			return 1;
		}
  }
// === [Dance] ===
 	if(strcmp(cmd, "/dance", true) == 0)
	{
		new dancestyle;
	  if(gFreeze[playerid] == 0)
		{
   		tmp = strtok(cmdtext, idx);
			dancestyle = strval(tmp);
			if(!strlen(tmp) || dancestyle < 1 || dancestyle > 4)
			{
		  	SendClientMessage(playerid,COLOR_RED,"USAGE: /dance [1-4]");
		  	return 1;
			}
			if(dancestyle == 1)
			{
		  	SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE1);
		  	gLoopingAnim[playerid] = 1;
			}
			else if(dancestyle == 2)
			{
		  	SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE2);
		  	gLoopingAnim[playerid] = 1;
			}
			else if(dancestyle == 3)
			{
		  	SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE3);
		  	gLoopingAnim[playerid] = 1;
			}
			else if(dancestyle == 4)
			{
		  	SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DANCE4);
		  	gLoopingAnim[playerid] = 1;
			}
 	 		return 1;
		}
		else
		{
 			SendClientMessage(playerid, COLOR_RED, "Applying animations while frozen is not allowed!");
 			return 1;
		}
	}
Reply
#3

i dont want all anims
i want the pedestrian walk ones
example

t/pedwalk 2 //grandpa walk
that typa shit
Reply
#4

try search wiki
Reply
#5

Theres a FS called "absoloutly all animations", search.
Reply
#6

Код:
	if(strcmp(cmd, "/rap", true) == 0)
{
	if (!strlen(cmdtext[5])) return SendClientMessage(playerid,0xFFFF9B96,"USAGE: /rap [1-5]");
	switch (cmdtext[5])
{
	case '1': LoopingAnim(playerid,"RAPPING","RAP_A_Loop",4.0,1,0,0,1,1);
	case '2': LoopingAnim(playerid,"RAPPING","RAP_B_Loop",4.0,1,0,0,1,1);
	case '3': LoopingAnim(playerid,"RAPPING","RAP_C_Loop",4.0,1,0,0,1,1);
	case '4': LoopingAnim(playerid,"GANGS","prtial_gngtlkD",4.0,1,0,0,1,1);
	case '5': LoopingAnim(playerid,"GANGS","prtial_gngtlkH",4.0,1,0,0,1,1);
	default: SendClientMessage(playerid,0xFFFF9B96,">USAGE: /rap [1-5]");
}
return 1;
}
Just make it on pedmove (it works for me and if i am wrong..I script like 3-4 days )
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)