Animations help, please!
#4

Код:
if(!strcmp(cmd, "/animbaseball", true))
	{
		if(IsPlayerInAnyVehicle(playerid) == 1) return SendClientMessage(playerid,COLOR_RED," Animations are inaccessible in transport!");

		tmp = strtok(cmdtext, idx);
		animid = strval(tmp);
		if(!strlen(tmp)||animid < 1 || animid > 11)
		{
			SendClientMessage(playerid,COLOR_SYSTEM," Syntax: /animbaseball [1-11]");
			return 1;
		}
		switch(animid)
		{
			case 1: ApplyAnimation(playerid,"BASEBALL","Bat_1",4.1,0,1,1,1,1);
			case 2: ApplyAnimation(playerid,"BASEBALL","Bat_2",4.1,0,1,1,1,1);
			case 3: ApplyAnimation(playerid,"BASEBALL","Bat_2",4.1,0,1,1,1,1);
			case 4: ApplyAnimation(playerid,"BASEBALL","Bat_4",4.1,0,1,1,1,1);
			case 5: ApplyAnimation(playerid,"BASEBALL","Bat_block",4.1,0,1,1,1,1);
			case 6: ApplyAnimation(playerid,"BASEBALL","Bat_Hit_1",4.1,0,1,1,1,1);
			case 7: ApplyAnimation(playerid,"BASEBALL","Bat_Hit_2",4.1,0,1,1,1,1);
			case 8: ApplyAnimation(playerid,"BASEBALL","Bat_Hit_3",4.1,0,1,1,1,1);
			case 9: ApplyAnimation(playerid,"BASEBALL","Bat_IDLE",4.1,0,1,1,1,1);
			case 10: ApplyAnimation(playerid,"BASEBALL","Bat_M",4.1,0,1,1,1,1);
			case 11: ApplyAnimation(playerid,"BASEBALL","BAT_PART",4.1,0,1,1,1,1);
		}
		return 1;
	}
The IsPlayerInAnyVehicle rule is applied to every animation, and thats the only place I can find that piece of writing.
Reply


Messages In This Thread
Animations help, please! - by Sideways - 07.01.2009, 20:14
Re: Animations help, please! - by Sideways - 08.01.2009, 19:08
Re: Animations help, please! - by Danut - 08.01.2009, 20:10
Re: Animations help, please! - by Sideways - 08.01.2009, 21:31
Re: Animations help, please! - by afei - 13.01.2009, 08:49
Re: Animations help, please! - by Sideways - 13.01.2009, 10:09
Re: Animations help, please! - by ICECOLDKILLAK8 - 13.01.2009, 10:31
Re: Animations help, please! - by [DRD]Rodney - 08.08.2010, 15:21

Forum Jump:


Users browsing this thread: 3 Guest(s)