CMD:fishing(playerid, params[])
{
SetTimerEx("Stop", 7000, false, "i", playerid);
TogglePlayerControllable(playerid,0);
ApplyAnimation(playerid,"SWORD","sword_block",50.0,0,1,0,1,1);
Hook[playerid]=SetPlayerAttachedObject(playerid, 4, 18632, 6, 0.2, -0.05, -0.05, 180, 0, 0, 1, 1, 1, 0);
return 1
}
forward Stop(playerid);
public Stop(playerid)
{
ClearAnimations(playerid);
TogglePlayerControllable(playerid,1);
RemovePlayerAttachedObject(playerid, 4);
}

|
You can use SetPlayerSkin(playerid, GetPlayerSkin(playerid)) before unfreezing. ClearAnimations may not work properly if the player is moving.
|