SA-MP Forums Archive
Please give me Animation /seat - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Please give me Animation /seat (/showthread.php?tid=510754)



Please give me Animation /seat - jesdynguyen - 02.05.2014

i have code cmd /siteat below , now i want more cmd /seat like LSRP server , Anyone can give me the code that for my server

Sorry my bad english


Код:
CMD:siteat(playerid, params[])
{
	if(!IsAblePedAnimation(playerid)) return 1;
	switch(strval(params))
	{
	case 1: PlayAnimEx(playerid, "FOOD", "FF_Sit_Eat3", 4.0, 1, 0, 0, 0, 0, 1);
	case 2: PlayAnimEx(playerid, "FOOD", "FF_Sit_Eat2", 4.0, 1, 0, 0, 0, 0, 1);
	default: SendClientMessage(playerid, COLOR_WHITE, "USAGE: /siteat [1-2]");
	}
	return 1;
}



Re: Please give me Animation /seat - Eth - 02.05.2014

pawn Код:
CMD:sit(playerid,params[])
{
ApplyAnimation(playerid,"PED","SEAT_IDLE",4,0,0,0, 1,0,1);
return 1;
}



Re: Please give me Animation /seat - jesdynguyen - 02.05.2014

thanks @Eth . good luck to your life