How the hell can I make that running animation? [ REP + ]
#9

Idk, What his motive to do that. haha But here's the code:

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	if(newkeys == KEY_WALK) // Alt key, change it.
	{
		if(IsPlayerInRangeOfPoint(playerid, 7.0, 2348.4985, -1373.0328, 24.3984)) //Change the coords to the threadmill machine
		{
			ApplyAnimation(playerid, "GYMNASIUM", "gym_tread_sprint", 4.1, 0, 1, 1, 1, 0, 1); //Running animation
		}
		return 1;
	}
	return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)