11.03.2013, 23:43
Just grabbed this from an old GM of mine, hopefully you'll understand it:
Take what you need.
pawn Код:
if(isnull(params))
{
SendClientMessageEx(playerid, COLOR_TEAL, "Type /TALK [0-3] for different settings.");
SendClientMessageEx(playerid, COLOR_TEAL, "/talk 0 - Single animation, frozen.");
SendClientMessageEx(playerid, COLOR_TEAL, "/talk 1 - Single animation, not frozen.");
SendClientMessageEx(playerid, COLOR_TEAL, "/talk 2 - Looped animation, frozen.");
SendClientMessageEx(playerid, COLOR_TEAL, "/talk 3 - Looped animation, not frozen.");
return ApplyAnimation(playerid, "PED", "IDLE_CHAT",4.1,0,1,1,0,0);
}
switch(strval(params))
{
case 0: ApplyAnimation(playerid, "PED", "IDLE_CHAT",4.1,0,1,1,0,0);
case 1: ApplyAnimation(playerid, "PED", "IDLE_CHAT",4.1,0,0,0,1,1);
case 2:
{
ApplyAnimation(playerid, "PED", "IDLE_CHAT",4.1,1,1,1,0,0);
pAnimating[playerid] = ANIM_PED;
}
case 3:
{
ApplyAnimation(playerid, "PED", "IDLE_CHAT",4.1,1,1,1,1,1);
pAnimating[playerid] = ANIM_PED;
}
}