C# Create a ped and animate him

Hello, how do i create a freezed ped into c#, only one, and animate him, to do something? Is this possible? If not, how to create only a static ped.

You can look at disabling user controls?

Like to make the ped freezed. And if the chat msg was typed do an action