In the 2:05 video, I need a code / bat animation as in the video someone can help me please
Код:
CMD:bat(playerid, params[])
{
if(!IsAblePedAnimation(playerid)) return 1;
if(GetPVarInt(playerid, "CantUsingAnimation") == 1)
{
SendClientMessage(playerid, COLOR_GREY, "Bang dang di chuyen khong the su dung hanh dong nay");
return 1;
}
switch(strval(params))
{
case 1: PlayAnimEx(playerid, "BASEBALL", "Bat_1", 4.0, 1, 0, 0, 0, 0, 1);
case 2: PlayAnimEx(playerid, "BASEBALL", "Bat_2", 4.0, 1, 0, 0, 0, 0, 1);
case 3: PlayAnimEx(playerid, "BASEBALL", "Bat_3", 4.0, 1, 0, 0, 0, 0, 1);
case 4: PlayAnimEx(playerid, "BASEBALL", "Bat_4", 4.0, 1, 0, 0, 0, 0, 1);
case 5: PlayAnimEx(playerid, "BASEBALL", "Bat_block", 4.0, 1, 0, 0, 0, 0, 1);
case 6: PlayAnimEx(playerid, "BASEBALL", "Bat_Hit_1", 4.0, 1, 0, 0, 0, 0, 1);
case 7: PlayAnimEx(playerid, "BASEBALL", "Bat_Hit_2", 4.0, 1, 0, 0, 0, 0, 1);
case 8: PlayAnimEx(playerid, "BASEBALL", "Bat_Hit_3", 4.0, 1, 0, 0, 0, 0, 1);
case 9: PlayAnimEx(playerid, "BASEBALL", "Bat_IDLE", 4.0, 1, 0, 0, 0, 0, 1);
case 10: PlayAnimEx(playerid, "BASEBALL", "Bat_M", 4.0, 1, 0, 0, 0, 0, 1);
case 11: PlayAnimEx(playerid, "BASEBALL", "BAT_PART", 4.0, 1, 0, 0, 0, 0, 1);
default: SendClientMessage(playerid, COLOR_WHITE, "USAGE: /bat [1-11]");
}
return 1;
}