19.04.2015, 01:39
Idk, What his motive to do that. haha
But here's the code:
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;
}

